DataSource

Namespace: PP;

Inheritance hierarchy

Object

DataSource

Description

The DataSource class is a basic class used to work with visual components data source.

Syntax

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

Constructor

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

Properties

  Property name Brief description
AttributeName The AttributeName property determines and returns attribute name by its identifier.
AttributesNames The AttributesNames property sets the object that contains names of data source attributes.
Data The Data property determines and returns data for the selected element of the specified series.
ItemName The ItemName property determines and returns series name by its identifier.
ItemNames The ItemNames property sets the object that contains names of data source elements.
Title The Title property sets chart or map title.

Methods

  Method name Brief description
add The add method adds data for the specified series attribute.
clear The clear method clears data source.
getAttributeData The getAttributeData method returns array of all series values by a single attribute.
getFirstNotNullData The getFirstNotNullData method returns the first non-empty value of the specified attribute.
getMaxIndexData The getMaxIndexData method returns maximum number of elements by all attributes.
getSeries The getSeries method returns data series.
getSeriesCount The getSeriesCount method returns the number of series in a data source.
getTimeAxis The getTimeAxis method returns data for the specified series attribute.
hasItem The hasItem method determines whether data of the series with the specified identifier is available.
isIndexLoaded The isIndexLoaded method determines whether data for element with the specified index is loaded.
loadData The loadData method loads additional data to a source.
remove The remove method removes data for the specified series attribute.

Events

   Event name Brief description
DataChanged The DataChanged event occurs when data in the source 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.
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