Class KVNode
java.lang.Object
com.pnfsoftware.jeb.core.output.tree.impl.Node
com.pnfsoftware.jeb.core.output.tree.impl.KVNode
- All Implemented Interfaces:
IActionableItem
,IItem
,IVisualItem
,IActionableNode
,INode
,IVisualNode
Basic implementation of a key-value tree node. A KV-Node has 2 labels: the primary label is a key
name; the first and only additional label is the value associated to that key.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
HAS_RELATED_ITEMS, ITEM_TYPE_IDENTITY, ITEM_TYPE_MASK, ROLE_MASTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the additional labels for table trees.void
setAdditionalLabels
(String[] addLabels) Methods inherited from class com.pnfsoftware.jeb.core.output.tree.impl.Node
addChild, getChild, getChildren, getClassId, getInitialExpansion, getItemFlags, getItemId, getLabel, insertChild, removeChild, removeChild, setClassId, setInitialExpansion, setItemFlags, setItemId, setLabel
-
Constructor Details
-
KVNode
Create a key value node whose value is empty.- Parameters:
label
- the non-null key (label)
-
KVNode
Create a key-value node.- Parameters:
label
- the non-null key (label)value
- the optional value attached to the key
-
-
Method Details
-
getAdditionalLabels
Description copied from interface:INode
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.
- Specified by:
getAdditionalLabels
in interfaceINode
- Overrides:
getAdditionalLabels
in classNode
- Returns:
- the list of additional labels. Example: If the table tree has 3 columns, that method should return at most 2 additional labels
-
setAdditionalLabels
-