public class TreeViewNodeResource extends TreeNodeResource implements TreeViewNode
Modifier and Type | Field and Description |
---|---|
private int |
bgColor
Background color
|
private int |
fgColor
Foreground color
|
private java.lang.String |
text |
bold, checked, key, nodeId, nodes, parent, tag, tree
instProc
Constructor and Description |
---|
TreeViewNodeResource(TreeWidgetBase treeView,
int nodeId,
java.lang.String key,
java.lang.String text,
TreeNodeResource parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBgColor()
Returns the node's background color, if it was previously set with
setBgColor(int) . |
int |
getFgColor()
Returns the node's foreground color.
|
character |
getNodeText()
Getter for the NODE-TEXT attribute.
|
protected void |
loadFromEntry(TreeNodeEntry entry)
Loads the state from the supplied instance of
TreeNodeEntry . |
protected TreeViewNodeEntry |
saveToEntry()
The method serializes the node state into new config entry instance.
|
protected void |
saveToEntry(TreeNodeEntry entry)
The method serializes the node state into the supplied entry instance.
|
void |
setBgColor(int bgColor)
Sets the node's background color.
|
void |
setFgColor(int fgColor)
Sets the node's foreground color.
|
void |
setNodeText(character value)
Setter for the NODE-TEXT attribute.
|
_dynamic, _getHasChildren, _getNodeId, _getNodeKey, _getNodeLevel, _getNodes, _getNodes, _getParent, _isNodeExpanded, _removeCollection, _setExpandNodeIcon, _setHasChildren, _setNodeExpanded, _setNodeIcon, _setSelectedNodeIcon, _setTooltip, delete, dynamic, ensureVisible, getChildNode, getChildren, getEditorMode, getExpandNodeIcon, getFirstSiblingNode, getFullPath, getLastSiblingNode, getNextNode, getNodeIcon, getNodeId, getNodeIndex, getNodeKey, getNodeParent, getNodes, getParentNode, getPreviousNode, getSelectedNodeIcon, getTag, getTreeNodeIndex, getTreeNodeValue, isBold, isChecked, isNodeExpanded, isSelected, isVisible, print, resourceDelete, setBold, setChecked, setChecked, setEditorMode, setExpandNodeIcon, setExpandNodeIcon, setNodeExpanded, setNodeIcon, setNodeIcon, setNodeKey, setParentNode, setSelected, setSelectedNodeIcon, setSelectedNodeIcon, setTag, setTreeNodeValue, valid
doDelete, getResourceType, id, id, implicitDeletion, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, readOnlyError, readOnlyError, registerResource, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureVisible, getChildNode, getChildren, getEditorMode, getExpandNodeIcon, getFirstSiblingNode, getFullPath, getLastSiblingNode, getNextNode, getNodeIcon, getNodeId, getNodeIndex, getNodeKey, getNodeParent, getParentNode, getPreviousNode, getSelectedNodeIcon, getTag, getTreeNodeIndex, getTreeNodeValue, isBold, isNodeExpanded, isSelected, isVisible, setBold, setEditorMode, setExpandNodeIcon, setExpandNodeIcon, setNodeExpanded, setNodeIcon, setNodeIcon, setNodeKey, setParentNode, setSelected, setSelectedNodeIcon, setSelectedNodeIcon, setTag, setTreeNodeValue
id, id, unknown, valid
isChecked, setChecked, setChecked
private int bgColor
private int fgColor
private java.lang.String text
public TreeViewNodeResource(TreeWidgetBase treeView, int nodeId, java.lang.String key, java.lang.String text, TreeNodeResource parent)
treeView
- Owning tree view.nodeId
- Node id.key
- Node key.text
- Node text.parent
- Node parent.public int getBgColor()
setBgColor(int)
.
Until the widget is realized the method returns undefined value. The returned color
value is compatible with the P4GL color binary format, i.e. BGR
encoding.getBgColor
in class TreeNodeResource
public int getFgColor()
getFgColor
in class TreeNodeResource
public character getNodeText()
getNodeText
in interface TreeNodeFace
getNodeText
in class TreeNodeResource
public void setBgColor(int bgColor)
setBgColor
in class TreeNodeResource
bgColor
- New background color.public void setFgColor(int fgColor)
setFgColor
in class TreeNodeResource
fgColor
- New foreground color.public void setNodeText(character value)
setNodeText
in interface TreeNodeFace
setNodeText
in class TreeNodeResource
value
- the new attribute value.protected void loadFromEntry(TreeNodeEntry entry)
TreeNodeEntry
.loadFromEntry
in class TreeNodeResource
entry
- A valid TreeNodeEntry
instance.protected TreeViewNodeEntry saveToEntry()
saveToEntry
in class TreeNodeResource
TreeViewNodeEntry
.protected void saveToEntry(TreeNodeEntry entry)
saveToEntry
in class TreeNodeResource
entry
- Instance of TreeNodeEntry
.