Namespace: Consultingwerk.Framework.Base
Class 
GenericList Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.Base.IEnumerable, Consultingwerk.Framework.Base.ISupportsListChanged, Consultingwerk.Framework.Base.ISupportsListHash
Inherited by: Consultingwerk.Studio.ListAnnotation, Consultingwerk.Studio.ListCaseWhen, Consultingwerk.Studio.ListClassMember, Consultingwerk.OERA.ListTableModel, Consultingwerk.OERA.NamedQueryParameterList, Consultingwerk.SmartComponents.Base.ListISmartDataTarget, Consultingwerk.SmartComponents.Base.ListISmartGroupAssignTarget, Consultingwerk.SmartComponents.Base.ListISmartGroupCreateTarget, Consultingwerk.SmartComponents.Base.ListISmartTableIOTarget, Consultingwerk.SmartComponents.Base.ListSmartDataAdapter, Consultingwerk.SmartComponents.Base.ListSmartViewerControl, Consultingwerk.SmartComponents.Implementation.ListTableIOTargetControl, Consultingwerk.BusinessEntityDesigner.Generator.ListIControlGenerator, Consultingwerk.BusinessEntityDesigner.Generator.TelerikMobile.ListColumn, Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ListViewerFieldSpec, Consultingwerk.SmartFramework.Authentication.ListSmartUser_Generated, Consultingwerk.SmartFramework.Authentication.ListSmartUser, Consultingwerk.SmartFramework.Authorization.ListSmartGroup_Generated, Consultingwerk.SmartFramework.Authorization.ListSmartGroup, Consultingwerk.SmartFramework.Authorization.ListSmartMenuGroup_Generated, Consultingwerk.SmartFramework.Authorization.ListSmartMenuGroup, Consultingwerk.SmartFramework.Authorization.ListSmartSecurityAssignment_Generated, Consultingwerk.SmartFramework.Authorization.ListSmartSecurityAssignment, Consultingwerk.SmartFramework.Authorization.ListSmartSecurityRealm_Generated, Consultingwerk.SmartFramework.Authorization.ListSmartSecurityRealm, Consultingwerk.SmartFramework.Authorization.ListSmartUserGroup_Generated, Consultingwerk.SmartFramework.Authorization.ListSmartUserGroup, Consultingwerk.Framework.Collections.ListIErrorHandler, Consultingwerk.Framework.MessageInteraction.ListQuestion, Consultingwerk.Framework.TypeDescriptor.ListIPropertyDescriptor, Consultingwerk.Framework.TypeDescriptor.ListSerializableAnnotation, Consultingwerk.Framework.TypeDescriptor.ListSerializableClassMemberAnnotation, Consultingwerk.ListMethod, Consultingwerk.ListNameValuePair, Consultingwerk.ListQueryExpression, Consultingwerk.OERA.BusinessEntityDescriptor.ListBusinessEntityFieldDescriptor, Consultingwerk.OERA.BusinessEntityDescriptor.ListBusinessEntityTableDescriptor, Consultingwerk.OERA.BusinessEntityDescriptor.ListBusinessEntityViewDescriptor, Consultingwerk.OERA.BusinessEntityDescriptor.ListInvokableMethodDescriptor, Consultingwerk.SmartFramework.System.ListSmartAttachmentRole_Generated, Consultingwerk.SmartFramework.System.ListSmartAttachmentRole, Consultingwerk.SmartFramework.System.ListSmartAttachment_Generated, Consultingwerk.SmartFramework.System.ListSmartAttachment, Consultingwerk.SmartFramework.System.ListSmartBusinessEntityTableConfiguration, Consultingwerk.SmartFramework.System.ListSmartCommentRole_Generated, Consultingwerk.SmartFramework.System.ListSmartCommentRole, Consultingwerk.SmartFramework.System.ListSmartLanguage_Generated, Consultingwerk.SmartFramework.System.ListSmartLanguage, Consultingwerk.SmartFramework.System.ListSmartLoginCompany_Generated, Consultingwerk.SmartFramework.System.ListSmartLoginCompany, Consultingwerk.SmartFramework.System.ListSmartMessage_Generated, Consultingwerk.SmartFramework.System.ListSmartMessage, Consultingwerk.SmartFramework.System.ListSmartRelation_Generated, Consultingwerk.SmartFramework.System.ListSmartRelation, Consultingwerk.SmartFramework.System.ListSmartTable_Generated, Consultingwerk.SmartFramework.System.ListSmartTable, Consultingwerk.SmartFramework.System.ListSmartTranslation_Generated, Consultingwerk.SmartFramework.System.ListSmartTranslation, Consultingwerk.SmartFramework.System.ListSmartUiTranslation_Generated, Consultingwerk.SmartFramework.System.ListSmartUiTranslation, Consultingwerk.SmartFramework.System.ListSmartValueListEntry_Generated, Consultingwerk.SmartFramework.System.ListSmartValueListEntry, Consultingwerk.SmartFramework.System.ListSmartValueList_Generated, Consultingwerk.SmartFramework.System.ListSmartValueList, Consultingwerk.SmartFramework.Menu.ListSmartFunction_Generated, Consultingwerk.SmartFramework.Menu.ListSmartFunction, Consultingwerk.SmartFramework.Menu.ListSmartMenuStyle_Generated, Consultingwerk.SmartFramework.Menu.ListSmartMenuStyle, Consultingwerk.SmartFramework.Menu.ListSmartMenu_Generated, Consultingwerk.SmartFramework.Menu.ListSmartMenu, Consultingwerk.SmartFramework.Menu.ListSmartModule_Generated, Consultingwerk.SmartFramework.Menu.ListSmartModule, Consultingwerk.SmartFramework.Scheduler.ListProcedureParameterObject
ABSTRACT

File:GenericList
Purpose:Abstract base class for generic lists
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Jan 20 20:48:40 CET 2011
Notes:Uses a single static temp-table for all GenericList instances
On OpenEdge 10 to avoid too many temp-tables issues



Top Method Summary
Options Name Purpose
+ 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
+ INTEGER IndexOf (Object) Determines the index of a specific item in the List
# InternalAdd (Object) Adds an Item to the List
# InternalAdd (Object[]) Adds the Items from an Array to the List
# Progress.Lang.Object InternalGetItem (integer) Returns the Item at the specified Index
# 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.

Top Constructor Summary
Options Name Purpose
# GenericList () Constructor for the GenericList 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 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 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 InternalAdd (Object)

Purpose: Adds an Item to the List
Notes: Protected method to be overridden in the actual generic List class

Parameters:
poItem Progress.Lang.Object
The Item to add to the List
Top

PROTECTED InternalAdd (Object[])

Purpose: Adds the Items from an Array to the List
Notes: Protected method to be overridden in the actual generic List class

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

PROTECTED Progress.Lang.Object InternalGetItem (integer)

Purpose: Returns the Item at the specified Index
Notes: Protected method to be overridden in the actual generic List class

Parameters:
piIndex INTEGER
The 1 based index of the Item to be returned
Returns Progress.Lang.Object
The object at the specified list position
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


Constructor Detail
Top

PROTECTED GenericList ()

Purpose: Constructor for the GenericList 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:37