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 two labels: the primary label is
the key, and the first additional label is the associated value.
-
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.voidsetAdditionalLabels(String[] addLabels) Set the additional labels array returned bygetAdditionalLabels().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:INodeGet 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:
getAdditionalLabelsin interfaceINode- Overrides:
getAdditionalLabelsin 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
Set the additional labels array returned bygetAdditionalLabels().- Parameters:
addLabels- replacement additional labels
-