Class SelectedState

java.lang.Object
org.apache.myfaces.tobago.model.SelectedState
All Implemented Interfaces:
Serializable

public class SelectedState extends Object implements Serializable
Manages the selected tree paths of a tree.
See Also:
  • Constructor Details

    • SelectedState

      public SelectedState()
  • Method Details

    • isSelected

      public boolean isSelected(TreePath path)
      Checks if the given path is selected.
    • isAncestorOfSelected

      public boolean isAncestorOfSelected(TreePath ancestorPath)
      Checks if the given path is an ancestor of a selected node.
    • select

      public void select(TreePath path)
      Select the given path.
    • unselect

      public void unselect(TreePath path)
      Unselect the given path.
    • clearAndSelect

      public void clearAndSelect(TreePath path)
      Set the selected path and remove all prior selections. This is useful for "single selection" mode.
    • clear

      public void clear()
      Clears the selected state, so that no TreePath is selected.
    • select

      public void select(TreePath path, boolean selected)
      Set the selection state of the given path
    • toString

      public String toString()
      Overrides:
      toString in class Object