Enum NodeGraphTraversalMode

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

public enum NodeGraphTraversalMode extends Enum<NodeGraphTraversalMode> implements ValueEnum
How a traversal of a NodeGraph ( NodeGraph.getTraversal(), or the structure of a NodeGraphTree) places the nodes it reaches.
  • Enum Constant Details

    • SPANNING

      public static final NodeGraphTraversalMode SPANNING
      breadth-first, each node once, under one parent from the level above (see chooseParent)

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

    • SHORTESTPATHS

      public static final NodeGraphTraversalMode 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 a multi-link tree

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

    • DAG

      public static final NodeGraphTraversalMode DAG
      every edge followed except one closing a loop, so a node reachable several ways appears under each parent, as in a multi-link tree

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

  • Method Details

    • values

      public static NodeGraphTraversalMode[] 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 NodeGraphTraversalMode 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