Package com.smartgwt.client.types
Enum NodeCopyMode
- All Implemented Interfaces:
ValueEnum,Serializable,Comparable<NodeCopyMode>,Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEach dropped node is linked into the drop folder as well as where it is already: a further link to the same node.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 drop is not accepted, andTreeGrid.transferNodes()logs a warning and changes nothing. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static NodeCopyModeReturns the enum constant of this type with the specified name.static NodeCopyMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REFUSE
The drop is not accepted, andTreeGrid.transferNodes()logs a warning and changes nothing.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "refuse". -
ADDLINK
Each dropped node is linked into the drop folder as well as where it is already: a further link to the same node. Formulti-link treesonly.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "addLink". -
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" orautoGenerated.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "duplicate".
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
-