| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.output.tree.impl.Node |
Known Direct Subclasses
|
A simple implementation of an actionable node. The node
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.output.IActionableItem
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Node(String label)
Create a new node.
| |||||||||||
|
Node(String label, ItemClassIdentifiers classId)
Create a new node.
| |||||||||||
|
Node(String label, ItemClassIdentifiers classId, long itemId, int flags)
Create a new node.
| |||||||||||
|
Node(String label, ItemClassIdentifiers classId, long itemId, int flags, int initialExpansion)
Create a new node.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | addChild(Node child) | ||||||||||
| String[] |
getAdditionalLabels()
Get the additional labels for table trees.
| ||||||||||
| Node | getChild(int index) | ||||||||||
| List<Node> |
getChildren()
Get the children of this node.
| ||||||||||
| ItemClassIdentifiers |
getClassId()
Retrieve the item class id, if any.
| ||||||||||
| int |
getInitialExpansion()
Get the initial expansion level for this node.
| ||||||||||
| int |
getItemFlags()
Retrieve the item flags.
| ||||||||||
| long |
getItemId()
Retrieve the item id.
| ||||||||||
| String |
getLabel()
Get the primary label of this node.
| ||||||||||
| void | insertChild(int index, Node child) | ||||||||||
| void | removeChild(int index) | ||||||||||
| void | removeChild(Node child) | ||||||||||
| void | setClassId(ItemClassIdentifiers classId) | ||||||||||
| void | setInitialExpansion(int expansionLevel) | ||||||||||
| void | setItemFlags(int flags) | ||||||||||
| void | setItemId(long itemId) | ||||||||||
| void | setLabel(String label) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.output.IActionableItem
| |||||||||||
From interface
com.pnfsoftware.jeb.core.output.IVisualItem
| |||||||||||
From interface
com.pnfsoftware.jeb.core.output.tree.INode
| |||||||||||
From interface
com.pnfsoftware.jeb.core.output.tree.IVisualNode
| |||||||||||
Create a new node.
| label | the label, without new-line characters |
|---|
Create a new node.
| label | the label, without new-line characters |
|---|---|
| classId | optional class identifier |
Create a new node.
| label | the label, without new-line characters |
|---|---|
| classId | optional class identifier |
| itemId | optional item identifier |
| flags | optional flags |
| initialExpansion | true to let clients know that the node should be expanded upon first rendering (default is false) |
Get the additional labels for table trees. Simple trees should return null.
It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.
Get the children of this node.
Retrieve the item class id, if any.
Get the initial expansion level for this node. This value can be used as a hint by UI clients, when they display the node for the first time.
Retrieve the item flags. Currently, the only flag defined is ROLE_MASTER.
(Subclasses may define additional flags. Example: see ICodeItem's
FLAG_xxx.)
Retrieve the item id.
Get the primary label of this node. That label is used by simple trees as the primary label, or as the first label in a row for table trees.
It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.