The Gravey 2.5 Framework and AIM RIA

Class ItemModel

Object
   |
   +--ItemModel

class ItemModel


This class encapsulates the data model of a particular Item. This model subscribes to a ItemSelectionModel so that it can be downloaded whenever a new Item is selected.
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in aimitems.js


Constructor Summary
ItemModel ()
           
 
Method Summary
 Item _getItem( <int> i )
           return the specified item
 Loan _getLoan( <int> i )
           return the specified loan
 EDO _newEDO(<EDOIndex> xi)
           return a new blank EDO of the type implied by EDOIndex
 EDOIndex _newItem( <int> i, itemEDO )
           create a new item
 EDOIndex _newLoan( <int> i, <EDO> edo )
           create a new loan
 void _resetEDOs( optItem, optLoan )
           clear EDOs
 void _setItem(o)
           set our Plain object but dont publish
 void _setLoan(o)
           set our Loan object but dont publish
 EDOIndex appendEDO(<EDOIndex> xi)
           create new EDO which is appended at end of EDO list
 EDOIndex createEDO(<EDOIndex> xi)
           create new EDO which is inserted after selected EDO
 EDOHolderSelectionItem createSelectionItem()
           create a new item for the selection list from current EDO
 String dump()
           return the debug details of "this"
 Object getEDO(<PLIndex> xi)
           return reference to the specified editable domain object
 String getLotNo()
           return the parent item lot number for this model
 String getName()
           return the parent item name for this model
 Object getUpdatedProperty()
           return the updated properties from the current EDO needed for select list update
 boolean hasEDO()
           return whether there is currently an EDO
 boolean isDirty()
           return whether any EDOs are changed for this model
 Object isLoan()
          
 boolean isValid()
           return whether all EDOs are valid for this model
 int itemCount( itemnum, key )
           return how many item have the given item number in its lot
 boolean keysMatch(<EDOHolderSelectionItem> item)
           return whether current EDO matches selection item "key"
 void konstructor( <ItemSelectionModel> itemSelectionModel, <String> optName )
          
 boolean propMatch(<EDOHolderSelectionItem> item)
           return whether current EDO matches selection item "properties"
 void pushPosts( <Array> posts )
           push into given array all AJAX SAVE Post params for this model
 void toggleExpand( <boolean> doAllFlag, <EDOIndex> xi )
           toggle the "expanded" flag of the specified EDOs.

Constructor Detail

ItemModel

ItemModel()

Method Detail

_getItem

Item _getItem( <int> i )

_getLoan

Loan _getLoan( <int> i )

_newEDO

EDO _newEDO(<EDOIndex> xi)

_newItem

EDOIndex _newItem( <int> i, itemEDO )

_newLoan

EDOIndex _newLoan( <int> i, <EDO> edo )

_resetEDOs

void _resetEDOs( optItem, optLoan )

_setItem

void _setItem(o)

_setLoan

void _setLoan(o)

appendEDO

EDOIndex appendEDO(<EDOIndex> xi)

createEDO

EDOIndex createEDO(<EDOIndex> xi)

createSelectionItem

EDOHolderSelectionItem createSelectionItem()

dump

String dump()

getEDO

Object getEDO(<PLIndex> xi)

getLotNo

String getLotNo()

getName

String getName()

getUpdatedProperty

Object getUpdatedProperty()

hasEDO

boolean hasEDO()

isDirty

boolean isDirty()

isLoan

Object isLoan()

isValid

boolean isValid()

itemCount

int itemCount( itemnum, key )

keysMatch

boolean keysMatch(<EDOHolderSelectionItem> item)

konstructor

void konstructor( <ItemSelectionModel> itemSelectionModel, <String> optName )

propMatch

boolean propMatch(<EDOHolderSelectionItem> item)

pushPosts

void pushPosts( <Array> posts )

toggleExpand

void toggleExpand( <boolean> doAllFlag, <EDOIndex> xi )

The Gravey 2.5 Framework and AIM RIA

Documentation generated by JSDoc on Thu Jan 6 12:46:39 2011