|
The Gravey 2.0 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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:
| 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()
| Method Detail |
Item _getItem( <int> i )
i - index into item list
Loan _getLoan( <int> i )
i - index into loan list
EDO _newEDO(<EDOIndex> xi)
xi - edo index
EDOIndex _newItem( <int> i, itemEDO )
i - item list index
edo - the item
EDOIndex _newLoan( <int> i, <EDO> edo )
i - loan list index
edo - the loan
void _resetEDOs( optItem, optLoan )
void _setItem(o)
void _setLoan(o)
EDOIndex appendEDO(<EDOIndex> xi)
xi - edo index
EDOIndex createEDO(<EDOIndex> xi)
xi - edo index
EDOHolderSelectionItem createSelectionItem()
String dump()
Object getEDO(<PLIndex> xi)
xi - edo index
String getLotNo()
String getName()
Object getUpdatedProperty()
boolean hasEDO()
boolean isDirty()
Object isLoan()
boolean isValid()
int itemCount( itemnum, key )
boolean keysMatch(<EDOHolderSelectionItem> item)
item - selection menu item
void konstructor( <ItemSelectionModel> itemSelectionModel, <String> optName )
itemSelectionModel - model of which Item is selected
optName - optional name of this instance
boolean propMatch(<EDOHolderSelectionItem> item)
item - selection menu item
void pushPosts( <Array> posts )
posts - string array containing POST params
void toggleExpand( <boolean> doAllFlag, <EDOIndex> xi )
doAllFlag - if true, set all of the EDOs to new value
xi - edo index
|
The Gravey 2.0 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||