List

Namespace: PP;

Inheritance hierarchy

Object

List

Description

The List class implements basic properties and methods for working with collections.

Syntax

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

Properties

  Property name Brief description
Items

The Items property sets the array of the collection items.

Methods

  Method name Brief description
add The add method adds an element to the collection.
clear The clear method removes all objects from the collection.
contains The contains method determines whether the collection includes the specified element.
getCount The getCount method returns the number of collection elements.
getItem The getItem method returns the collection element by the specified index.
indexOf The indexOf method returns index of the specified collection element.
insert The insert method inserts an element to the specified position.
insertBefore The insertBefore method inserts an element to the position before the specified element.
remove The remove method removes the specified element from the collection.
setItem The setItem method writes the element to the specified position in the collection.

Events

   Event name Brief description
Changed The Changed event occurs after changing collection state.
Changing The Changing event occurs on changing collection state.

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