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

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