|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.tree2.TreeNodeBase
com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
TreeNode with selection is an extension of the JSF tree that allows for selecting a node on the tree using checkboxes.
Constructor Summary | |
TreeNodeWithSelection()
Default constructor |
|
TreeNodeWithSelection(java.lang.String type,
java.lang.String description,
boolean leaf)
Constructor to crate node with selection |
|
TreeNodeWithSelection(java.lang.String type,
java.lang.String description,
java.lang.String identifier,
boolean leaf)
Constructor for a given type and identifier |
|
TreeNodeWithSelection(TreeNodeWithSelection parentNode,
java.lang.String type,
java.lang.String description,
boolean leaf)
Constructor for a given type and parent |
Method Summary | |
int |
compareTo(java.lang.Object node)
Compare this node to another node |
TreeNodeWithSelection |
getNodeByName(java.lang.String name)
given a name of the node, recurse and return the tree node instance |
TreeNodeWithSelection |
getParent()
Return parent node for this node |
boolean |
isSelected()
Returns whether this particular node in the tree has been selected or not. |
void |
removeNode(TreeNodeWithSelection node)
Remove given node from the tree |
void |
setChildrenSelectedRecursively()
Recursivley go through the tree and mark all children as selected nodes. |
void |
setNeedUpdateChildren(boolean isNeedUpdate)
Set the need to update children flag to true |
void |
setParent(TreeNodeWithSelection parent)
Set parent node for this node |
void |
setSelected(boolean selected)
Sets this node to be a selected node in the tree. |
Methods inherited from class org.apache.myfaces.custom.tree2.TreeNodeBase |
getChildCount, getChildren, getDescription, getIdentifier, getType, isLeaf, setDescription, setIdentifier, setLeaf, setType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeNodeWithSelection()
public TreeNodeWithSelection(java.lang.String type, java.lang.String description, boolean leaf)
type
- type of the node for example "Role" or "PermossionSet" etcdescription
- description to useleaf
- true if leaf, false otherwisepublic TreeNodeWithSelection(java.lang.String type, java.lang.String description, java.lang.String identifier, boolean leaf)
type
- type of the node for example "Role" or "PermossionSet" etcdescription
- description to useidentifier
- identifier for nodeleaf
- true if leaf, false otherwisepublic TreeNodeWithSelection(TreeNodeWithSelection parentNode, java.lang.String type, java.lang.String description, boolean leaf)
parentNode
- parent node to settype
- type of the node for example "Role" or "PermossionSet" etcdescription
- description to useleaf
- true if leaf, false otherwiseMethod Detail |
public int compareTo(java.lang.Object node)
compareTo
in interface java.lang.Comparable
node
- other node instance of TreeNodeWithSelectionpublic TreeNodeWithSelection getNodeByName(java.lang.String name)
name
- Name to recurse
public TreeNodeWithSelection getParent()
public boolean isSelected()
public void removeNode(TreeNodeWithSelection node)
node
- Node to removepublic void setChildrenSelectedRecursively()
public void setNeedUpdateChildren(boolean isNeedUpdate)
isNeedUpdate
- true to update, false otherwisepublic void setParent(TreeNodeWithSelection parent)
parent
- parent node to setpublic void setSelected(boolean selected)
selected
- true if selected, false otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |