Namespace: Consultingwerk.Framework.Base
Class 
List Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.Base.IEnumerable, Consultingwerk.Framework.Base.ISupportsListChanged, Consultingwerk.Framework.Base.ISupportsListHash

File:List
Purpose:A List class for Progress.Lang.Object instances
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Dec 27 15:01:32 CET 2009



Top Method Summary
Options Name Purpose
+ Progress.Lang.Object Add (Object) Adds an Item to the List
# Add (Object[]) Adds the Items from an Array to the List
+ Clear () Removes all items from the List
+ LOGICAL Contains (Object) Determines if an object is a member of the List
+ Consultingwerk.Framework.Base.IEnumerator GetEnumerator () Returns a new IEnumerator instance for this object instance
+ Progress.Lang.Object GetItem (integer) Returns the Item at the specified Index
+ INTEGER IndexOf (Object) Determines the index of a specific item in the List
# OnListChanged (ListChangedEventArgs) Raises the ListChanged event
+ Remove (Object) Removes the first occurrence of a specific object from the List
+ RemoveAt (integer) Removes the List item at the specified index.
+ Progress.Lang.Object ToArray () Returns an Array with the elements of the List

Top Constructor Summary
Options Name Purpose
+ List () Constructor for the List class

Top Event Summary
Options Name Purpose
+ ListChanged (Object, ListChangedEventArgs) Raised when the List is changed by adding or removing items or clearing the list

Top Property Summary
Options Name Purpose
+ INTEGER Count Returns the Lists item count
+ CHARACTER ListHash Returns a hash value representing the current list contents


Method Detail
Top

PUBLIC Progress.Lang.Object Add (Object)

Purpose: Adds an Item to the List
Notes:

Parameters:
poItem Progress.Lang.Object
The Item to add to the List
Returns Progress.Lang.Object
The item that was added to the List
Top

PROTECTED Add (Object[])

Purpose: Adds the Items from an Array to the List
Notes:

Parameters:
poItem Progress.Lang.Object
The Array of Items to add to the List
Top

PUBLIC Clear ()

Purpose: Removes all items from the List
Notes:

Top

PUBLIC LOGICAL Contains (Object)

Purpose: Determines if an object is a member of the List
Notes:

Parameters:
poListItem Progress.Lang.Object
The object to locate in the List
Returns LOGICAL
Logical value indicating if the object is contained in the list
Top

PUBLIC Consultingwerk.Framework.Base.IEnumerator GetEnumerator ()

Purpose: Returns a new IEnumerator instance for this object instance
Notes:

Returns Consultingwerk.Framework.Base.IEnumerator
The IEnumerator instance for this object
Top

PUBLIC Progress.Lang.Object GetItem (integer)

Purpose: Returns the Item at the specified Index
Notes:

Parameters:
piIndex INTEGER
The index of the Item to be returned
Returns Progress.Lang.Object
The object at the specified list position
Top

PUBLIC INTEGER IndexOf (Object)

Purpose: Determines the index of a specific item in the List
Notes:

Parameters:
poListItem Progress.Lang.Object
The object to locate in the List
Returns INTEGER
Integer value indicating if position of the object in the list
Top

PROTECTED OnListChanged (ListChangedEventArgs)

Purpose: Raises the ListChanged event
Notes:

Parameters:
e Consultingwerk.Framework.Base.ListChangedEventArgs
The ListChangedEventArgs object instance with the data of the ListChanged event
Top

PUBLIC Remove (Object)

Purpose: Removes the first occurrence of a specific object from the List
Notes:

Parameters:
poListItem Progress.Lang.Object
The member to remove from the List
Top

PUBLIC RemoveAt (integer)

Purpose: Removes the List item at the specified index.
Notes:

Parameters:
piIndex INTEGER
The Index of the Item to remove from the List
Top

PUBLIC Progress.Lang.Object ToArray ()

Purpose: Returns an Array with the elements of the List
Notes:

Returns Progress.Lang.Object
The array of the elements of the List


Constructor Detail
Top

PUBLIC List ()

Purpose: Constructor for the List class
Notes:



Event Detail
Top

PUBLIC ListChanged (Object, ListChangedEventArgs)

Purpose: Raised when the List is changed by adding or removing items or
clearing the list
Notes:

Parameters:
sender Progress.Lang.Object
The sender of the event
e Consultingwerk.Framework.Base.ListChangedEventArgs
The ListChangedEventArgs object instance with the data of the ListChanged event


Property Detail
Top

PUBLIC INTEGER Count

Purpose: Returns the Lists item count
Notes:

Returns INTEGER
Top

PUBLIC CHARACTER ListHash

Purpose: Returns a hash value representing the current list contents
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:28:39