|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNode
Composite Tree Node interface. Allows for iterating children (if any) and all information needed to render the tree node.
| Field Summary | |
|---|---|
static TreeNode[] |
NO_CHILDREN
If there are no children then getNested() returns NO_CHILDREN which is a Special Case of no children nodes. |
| Method Summary | |
|---|---|
void |
collapseAllFolders()
Collapses all folders by marking the root node as unselected. |
void |
expandAllFolders()
Expands all folder nodes by marking them selected without marking any leaf nodes necessarily selected. |
String |
getIconUrl()
Retrieve url of the icon associated with the node. |
String |
getLabel()
Retrieve the Label of the tree node. |
String |
getLink()
Retrieve the link if the node is clicked. |
TreeNode[] |
getNested()
Retrieve all children (may be an empty array) if no children. |
String |
getSelectedStyle()
Retrieve the CSS style for the node when it is selected. |
String |
getUnselectedStyle()
Retrieve the CSS style for the node when it is unselected. |
boolean |
isSelected()
Returns true if this node is selected. |
void |
setSelected(boolean selectionValue)
Manipulator that sets the selected value to true. |
| Field Detail |
|---|
static final TreeNode[] NO_CHILDREN
| Method Detail |
|---|
String getLabel()
String getLink()
String getSelectedStyle()
String getUnselectedStyle()
TreeNode[] getNested()
String getIconUrl()
boolean isSelected()
void setSelected(boolean selectionValue)
selectionValue - true if the value should be selected.void expandAllFolders()
void collapseAllFolders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||