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, treeinstProc, pm| 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.
|
handle |
getParentNode()
Gets its parent node.
|
protected void |
loadFromEntry(TreeNodeEntry entry)
Loads the state from the supplied instance of
TreeNodeEntry. |
void |
print(PrintHelper printer)
Add class-specific fields to the helper.
|
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, getNodes, getPreviousNode, getSelectedNodeIcon, getTag, getTreeNodeIndex, getTreeNodeValue, isBold, isChecked, isNodeExpanded, isSelected, isVisible, resourceDelete, setBold, setChecked, setChecked, setEditorMode, setExpandNodeIcon, setExpandNodeIcon, setNodeExpanded, setNodeIcon, setNodeIcon, setNodeKey, setParentNode, setSelected, setSelectedNodeIcon, setSelectedNodeIcon, setTag, setTreeNodeValue, valid_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, implicitDeletion, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, readOnlyError, readOnlyError, registerResource, resourceType, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitensureVisible, getChildNode, getChildren, getEditorMode, getExpandNodeIcon, getFirstSiblingNode, getFullPath, getLastSiblingNode, getNextNode, getNodeIcon, getNodeId, getNodeIndex, getNodeKey, getPreviousNode, getSelectedNodeIcon, getTag, getTreeNodeIndex, getTreeNodeValue, isBold, isNodeExpanded, isSelected, isVisible, setBold, setEditorMode, setExpandNodeIcon, setExpandNodeIcon, setNodeExpanded, setNodeIcon, setNodeIcon, setNodeKey, setParentNode, setSelected, setSelectedNodeIcon, setSelectedNodeIcon, setTag, setTreeNodeValueid, id, unknown, validisChecked, setChecked, setCheckedallowDeleteprivate 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 TreeNodeResourcepublic int getFgColor()
getFgColor in class TreeNodeResourcepublic character getNodeText()
getNodeText in interface TreeNodeFacegetNodeText in class TreeNodeResourcepublic void print(PrintHelper printer)
print in interface Printableprint in class TreeNodeResourceprinter - the string helper to updatepublic void setBgColor(int bgColor)
setBgColor in class TreeNodeResourcebgColor - New background color.public handle getParentNode()
getParentNode in interface TreeNodeFacegetParentNode in class TreeNodeResourcepublic void setFgColor(int fgColor)
setFgColor in class TreeNodeResourcefgColor - New foreground color.public void setNodeText(character value)
setNodeText in interface TreeNodeFacesetNodeText in class TreeNodeResourcevalue - the new attribute value.protected void loadFromEntry(TreeNodeEntry entry)
TreeNodeEntry.loadFromEntry in class TreeNodeResourceentry - A valid TreeNodeEntry instance.protected TreeViewNodeEntry saveToEntry()
saveToEntry in class TreeNodeResourceTreeViewNodeEntry.protected void saveToEntry(TreeNodeEntry entry)
saveToEntry in class TreeNodeResourceentry - Instance of TreeNodeEntry.