TreeNodes

Namespace: PP.Ui;

Inheritance hierarchy

Object

TreeNodes

Description

The TreeNodes class implements API of the TreeList node collection.

Syntax

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

Properties

  Method name Brief description
Filter The Filter property determines the text by which the nodes will be filtered.
FilterColumn The FilterColumn property determines index of the column, data of which are used to filter nodes in hierarchical tree.
FilterMethod The FilterMethod property determines custom function for hierarchical tree nodes filtering.
FilterValue The FilterValue property determines the value for filtering nodes in a hierarchical tree.
Sort The Sort property determines sorting method for the selected column.

Methods

  Method name Brief description
clear The clear method removes all nodes from the collection.
deleteNode The deleteNode method deletes a tree node.
getCount The getCount method returns the number of children for the specified node.
getItem The getItem method returns node by its index.
getItemByKey The getItemByKey method returns a node by its key.
getItemKey The getItemKey method returns node key by index.
getItemValue The getItemValue method returns property value of nodes by index.
insertNode The insertNode method inserts a node into the tree.
loadFrom

The loadFrom method inserts an array of tree items to node and deletes all node children that existed before this operation.

setChildProps The setChildProps method sets properties to nodes and if necessary to all child elements.
updateFrom

The updateFrom method inserts an array of tree items to the node deleting all children of the node. It reserves items' state (that is, properties set for these items), initializing them by the key.

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.
getId The getId method returns repository object identifier.
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.
setId The setId method determines a repository object identifier.
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