TreeNode

Namespace: PP.Ui;

Inheritance hierarchy

Object

TreeNode

Description

The TreeNode class implements an element in the collection of the TreeList component nodes.

Syntax

PP.initClass(PP.Ui.TreeNode, PP.Object, "TreeNode");

Constructor

  Constructor name Brief description
TreeNode The TreeNode constructor creates an instance of the TreeNode class.

Properties

  Property name Brief description
CanSelect The CanSelect property determines whether the node is selectable.
Checked The Checked property determines whether the node checkbox is marked.
ChildrenCount The ChildrenCount property determines a number of the tree node children.
Class The Class property determines tree node css-class.
Color The Color property determines tree node color.
ColumnText The ColumnText property sets contents of node for a specified column.
Data The Data property determines tree node data.
Draggable The Draggable property determines whether the node can be dragged.
Expanded The Expanded property determines whether node children are displayed.
Focused The Focused property determines whether the tree node has a focus.
Font The Font property determines font parameters of the tree node.
HasChild The HasChild property determines whether tree node has any child element.
HasChildSelected The HasChildSelected property determines whether tree node has any selected child element.
Highlighted The Highlighted property determines whether to use a tooltip for the specified node.
ImageIndex The ImageIndex property determines an index of the item placed in component ImageList.
ImageUrl The ImageUrl property determines the path to the tree node icon.
Key The Key property determines node key.
ResourceKey The ResourceKey property determines resource key for tree node.
Selected The Selected property determines whether the node is selected.
Text The Text property determines name for a tree node.
ToolTip The ToolTip property determines text of the tree node tooltip.
Value The Value property determines tree node value.
Visible The Visible property determines whether the tree node is visible.

Methods

  Method name Brief description
addClass The addClass method adds css-class to the node.
collapse The collapse method collapses node children.
collapseAll The collapseAll method hides a list of the node child elements.
deSelectChild The deSelectChild method deselects all child elements of the node.
expand The expand method expands the node children menu.
expandAll The expandAll method expands the node children menu.
getDomNode The getDomNode method returns the main DOM node of the node.
getIndex The getIndex method returns tree node index.
getLevel The getLevel method returns the level number where the node is in the tree.
getNodes The getNodes method returns object of the PP.Ui.TreeNodes class containing node children.
getParentNode The getParentNode method returns the parent node.
getRealHeight The getRealHeight method returns real height of tree node.
getVisualPosition The getVisualPosition method returns a number of the node position in the list of visible elements.
isLast The isLast method determines whether the node is the last in its branch.
isVisible The isVisible method determines whether the node is visible.
load The load method loads a node.
removeClass The removeClass method removes css-class from a node.
selectAll The selectAll method selects all the node children.
selectChild The selectChild method selects all child elements of the node.
setFocused The setFocused method sets focus for the node.
toggle The toggle method collapses and expands the list of node children.

Properties inherited from the class Object

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP.Ui