|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.common.taglib.DefaultTreeNode
public class DefaultTreeNode
Default implementation of the tree node.
Field Summary | |
---|---|
static int |
MAXIMUM_LABEL_LENGTH
Sets the maximum label length and truncates if the label is to long |
Fields inherited from interface com.sri.common.taglib.TreeNode |
---|
NO_CHILDREN |
Constructor Summary | |
---|---|
DefaultTreeNode()
Default constructor. |
|
DefaultTreeNode(DefaultTreeNode parentNode)
Constructor that takes a parent node. |
Method Summary | |
---|---|
void |
addNested(TreeNode node)
Adds a nested tree node to this node. |
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. |
TreeNode |
getParent()
Retrieve the parent to allow bi-direction navigation through the tree. |
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 |
isParent()
Retrieves whether or not this is a parent node. |
boolean |
isSelected()
Returns true if this node is selected. |
void |
setIconUrl(String newValue)
Sets the icon url. |
void |
setLabel(String nodeLabel)
Sets the label for the node. |
void |
setLink(String nodeLink)
Sets the link for the node. |
void |
setSelected(boolean selectionValue)
Sets whether the node is selected or not. |
void |
setSelectedStyle(String nodeSelectedStyle)
Sets the node selected style. |
void |
setUnselectedStyle(String nodeUnselectedStyle)
Sets the nodes unselected style. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM_LABEL_LENGTH
Constructor Detail |
---|
public DefaultTreeNode()
public DefaultTreeNode(DefaultTreeNode parentNode)
parentNode
- TreeNodeMethod Detail |
---|
public String getLabel()
getLabel
in interface TreeNode
public String getLink()
getLink
in interface TreeNode
public String getSelectedStyle()
getSelectedStyle
in interface TreeNode
public String getUnselectedStyle()
getUnselectedStyle
in interface TreeNode
public TreeNode getParent()
public TreeNode[] getNested()
getNested
in interface TreeNode
public boolean isParent()
public String getIconUrl()
getIconUrl
in interface TreeNode
public void setIconUrl(String newValue)
newValue
- Stringpublic void addNested(TreeNode node)
node
- TreeNodepublic void setLabel(String nodeLabel)
nodeLabel
- String the label of the node.public void setLink(String nodeLink)
nodeLink
- Stringpublic boolean isSelected()
isSelected
in interface TreeNode
public void setSelected(boolean selectionValue)
setSelected
in interface TreeNode
selectionValue
- booleanpublic void setSelectedStyle(String nodeSelectedStyle)
nodeSelectedStyle
- Stringpublic void setUnselectedStyle(String nodeUnselectedStyle)
nodeUnselectedStyle
- Stringpublic void expandAllFolders()
expandAllFolders
in interface TreeNode
public void collapseAllFolders()
collapseAllFolders
in interface TreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |