Enum NodeCopyMode

java.lang.Object
java.lang.Enum<NodeCopyMode>
com.smartgwt.client.types.NodeCopyMode
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<NodeCopyMode>, Constable

public enum NodeCopyMode extends Enum<NodeCopyMode> implements ValueEnum
What a drag-copy of nodes into a TreeGrid does when the tree already holds those nodes — a drop within the tree, or from another TreeGrid showing the same tree — see Tree.nodeCopyMode.
  • Enum Constant Details

    • REFUSE

      public static final NodeCopyMode REFUSE
      The drop is not accepted, and TreeGrid.transferNodes() logs a warning and changes nothing.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "refuse".

    • DUPLICATE

      public static final NodeCopyMode DUPLICATE
      Each dropped node is copied into a new record under the drop folder, added through the tree's DataSource without its primary key, which the DataSource generates. The node's children are not copied. For databound single-link trees whose primary key is of type "sequence" or autoGenerated.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "duplicate".

  • Method Details

    • values

      public static NodeCopyMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NodeCopyMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Specified by:
      getValue in interface ValueEnum