net.sf.tacos.ajax.components.tree
Interface ITreeManager

All Known Implementing Classes:
TreeManager

public interface ITreeManager

Author:
phraktle

Method Summary
 void collapseAll()
          Collapses all nodes.
 void expandAll()
          Expands all
 boolean isExpanded(Object element)
          Whether or not node expanded
 boolean isExpandedKey(Serializable key)
          Checks expanded based on key
 Object reveal(Object element)
          Reveals the object in the tree by adding it and any parents required to reveal it to the current Trees state.
 void setExpanded(Object element, boolean expand)
          Sets the element to expanded
 void setExpandedKey(Serializable key, boolean expand)
          Sets expanded based on key
 

Method Detail

isExpanded

boolean isExpanded(Object element)
Whether or not node expanded

Parameters:
element -
Returns:

isExpandedKey

boolean isExpandedKey(Serializable key)
Checks expanded based on key

Parameters:
key -
Returns:

setExpanded

void setExpanded(Object element,
                 boolean expand)
Sets the element to expanded

Parameters:
element -
expand -

setExpandedKey

void setExpandedKey(Serializable key,
                    boolean expand)
Sets expanded based on key

Parameters:
key -
expand -

collapseAll

void collapseAll()
Collapses all nodes.


expandAll

void expandAll()
Expands all


reveal

Object reveal(Object element)
Reveals the object in the tree by adding it and any parents required to reveal it to the current Trees state.

Parameters:
element -
Returns:
The top level parent element that had to be revealed in order to make this component visible, otherwise should return the element passed in.