TreeModel

Namespace: PP;

Inheritance hierarchy

Object

TreeModel

Description

The TreeModel class implements data model in hierarchical charts.

Comments

The TreeModel class is using by the components BubbleTree and TreeMap.

Syntax

PP.initClass(PP.TreeModel, PP.Object, "PP.TreeModel");

Constructor

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

Properties

  Property name Brief description
ActiveItem The ActiveItem property determines an active element of chart data model.
RootItem The RootItem property determines a root element of the chart data model.

Methods

  Method name Overview
buildIndex The buildIndex method refreshes indexes of data model elements.
getItem The getItem method returns data model element by its index.
goToParent The goToParent method replaces the currently active element with its parent.

Events

  Event name Brief description
ActiveItemChanged

The ActiveItemChanged event occurs after active chart element is changed.

Properties inherited from the class Object

  Property name Brief description
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets component parameters.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP