Package com.smartgwt.client.types
Enum NodeGraphTraversalMode
- All Implemented Interfaces:
ValueEnum,Serializable,Comparable<NodeGraphTraversalMode>,Constable
How a traversal of a NodeGraph ( NodeGraph.getTraversal(), or the structure of a NodeGraphTree) places the nodes it reaches.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionevery edge followed except one closing a loop, so a node reachable several ways appears under each parent, as in amulti-link treebreadth-first, each node under every node one step nearer the root that has an edge to it, so every shortest path from the root is a path in the tree, and a node reachable by several equally short paths appears under each of their last steps, as in amulti-link treebreadth-first, each node once, under one parent from the level above (see chooseParent) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static NodeGraphTraversalModeReturns the enum constant of this type with the specified name.static NodeGraphTraversalMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPANNING
breadth-first, each node once, under one parent from the level above (see chooseParent)If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "spanning". -
SHORTESTPATHS
breadth-first, each node under every node one step nearer the root that has an edge to it, so every shortest path from the root is a path in the tree, and a node reachable by several equally short paths appears under each of their last steps, as in amulti-link treeIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "shortestPaths". -
DAG
every edge followed except one closing a loop, so a node reachable several ways appears under each parent, as in amulti-link treeIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "dag".
-
-
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
-