class: DataModelManager

public abstract class: DataModelManager
Author: Mario Wagner
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:31:54; Modified: 16.07.2009 15:31:54;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {9DA82C86-0971-4d20-B7D7-29ED37BD2A66}
DataModel and List Manager for data input managed in form of data tables. The data object input user interface is powered using a simple DataModel combined by some addObject and removeObject methods. Internally the objects are stored using a List<T>, which Type T has to be given by the implementing class. For your viewing pleasure there is method called getObjectDataList(), delivering all objects stored in the suitable vo accessed by getDataSetFromVO().
@param <T> the object type you want to manage in an data table
 

Goto: Custom Properties, Fields, Methods

See also: ContentAbstractManager, ContentLanguageManager, ContentSubjectManager, PersonOrganisationManager, CreatorManager, IdentifierManager, SourceManager, AlternativeTitleManager, AnyFieldCriterionManager, DateCriterionManager, EventCriterionManager, FileCriterionManager, GenreCriterionManager, IdentifierCriterionManager, LanguageCriterionManager, LocalTagCriterionManager, OrganizationCriterionManager, PersonCriterionManager, SourceCriterionManager

Appears in: appbase

Connections
 
Custom Properties
 
DataModelManager Attributes
Attribute Details
protected DataModel
  objectDM
Initial: null
protected List
  objectList
Initial: null
 
DataModelManager Methods
Operation Details
public
addObject():String
Sequential
Notes: Adds a object of type T to the list (and therefore to the UI model)
public abstract
createNewObject():T
Sequential
Notes: I do not really know how to create and initialize a new object of type T, but you should be able to do so.
public
getObjectDM():DataModel
Sequential
Notes: The DataModel is always created by wrapping the data objects contained in the objectList. If this objectList is empty, there will be no rows to be displayed.
@return DataModel
public
getObjectList():List
Sequential
Notes: ////////////////////////////////////////////////////////////////////////// Class implementation section
public
removeObject():String
Sequential
Notes: Removes object of type T from the list (and therefore from the UI model)
protected
removeObjectAtIndex(
   int i):void
Sequential
public
setObjectDM(
   DataModel objectDM):void
Sequential
Notes: Simple setter, not really used yet
public
setObjectList(
   List objectList):void
Sequential