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
sub_image.gif TreeModel The TreeModel constructor creates an instance of the TreeModel class.

Properties

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

Methods

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

Events

  Event name Brief description
event_image.gif 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 the 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