org.apache.myfaces.tobago.model
Class SelectedState

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
SelectedState()
           
 
Method Summary
 void clear()
          Clears the selected state, so that no TreePath is selected.
 void clearAndSelect(TreePath path)
          Set the selected path and remove all prior selections.
 boolean isSelected(TreePath path)
          Checks if the given is selected.
 void select(TreePath path)
          Select the given path.
 void select(TreePath path, boolean selected)
          Set the selection state of the given path
 void unselect(TreePath path)
          Unselect the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedState

public SelectedState()
Method Detail

isSelected

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


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



Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.