CEventTreeNode
This class describes a node in a TreeView. This node is identified by an ID string. It can contain a text and an icon.
Some attributes can be set for the node:
- foreground color
- background color
- border
- font
- tool tip
In addition, each TreeNode can have children nodes.
Constructor
The constructor gets the ID, the text and the icon of the TreeNode.
CEventTreeNode(@NotNull final String aId,
@NotNull final String aDisplayedText,
@Nullable final CEventIcon aIcon);
ID
The method returns the ID of the TreeNode. The ID is always a valid string and is set in the constructor.
@NotNull
String getId();
Text
Here the displayed text is returned. It is set in the constructor and can be empty.
@Nullable
String getDisplayedText();
Icon
The optional icon is set in the constructor.
@Nullable
CEventIcon getIcon();
Background
The optional background of the TreeNode can be set explicitly.
@Nullable
CEventColor getBackground();
void setBackground(final CEventColor aBackground);
Foreground
The optional foreground of the TreeNode can be set explicitly.
@Nullable
CEventColor getForeground();
void setForeground(final CEventColor aForeground);
Border
Each node in a TreeView can have its own border.
@Nullable
IBorder getBorder()
void setBorder(final IBorder aBorder);
Font
For each node in a TreeView a separate font can be set.
@Nullable
CEventFont getFont();
void setFont(final CEventFont aFont);
Related Pages
Auxiliary classes and events
This is a function of the RemoteSkin widget API. Auxiliary classes and events for transporting data are listed here.
CEventTableColumn
This is a function of the RemoteSkin widget API. This event is used to transport data: a table column is described here.
CEventCreateWidget
This is a auxiliary class of the RemoteSkin widget API. CEventCreateWidget is used to create a new widget.
CEventEnsureVisible
This is a auxiliary class of the RemoteSkin widget API. The event ensures that items are visible in list boxes and tree views.
CEventInsertMenuItem
This is a auxiliary class of the RemoteSkin widget API. It inserts a new menu item.
CEventInsertText
This is a auxiliary class of the RemoteSkin widget API. This function inserts new text.