|
The Gravey 2.0 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--AuctionModel
This class encapsulates the data model of a particular Auction.
This model subscribes to a AuctionSelectionModel
so that new Lot lists can be downloaded whenever a new Auction is selected.
NOTE: Other parts of AIM assume that the lot lists will never be null; zero items is ok though.
| Constructor Summary | |
AuctionModel
()
|
|
| Method Summary | |
EDOIndex
|
_appendLot( <int> i, <EDO> edo )
append a new lot |
Auction
|
_getAuction( <int> i )
return the specified auction |
Lot
|
_getLot( <int> i )
return the specified lot |
void
|
_insertLot( xi )
insert a new lot |
EDOIndex
|
_newAuction( <int> i, auctionEDO )
create a new auction |
EDO
|
_newEDO(<EDOIndex> xi)
return a new blank EDO of the type implied by EDOIndex |
ListModel
|
_newLots()
get a new Lot list |
void
|
_resetEDOs( optAuction )
clear EDOs |
void
|
_setAuction(o)
set our Auction 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(<ALIndex> xi)
return reference to the specified editable domain object |
String
|
getID()
return the parent Auction ID 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 |
boolean
|
isValid()
return whether all EDOs are valid for this model |
boolean
|
keysMatch(<EDOHolderSelectionItem> item)
return whether current EDO matches selection item "key" |
void
|
konstructor( <AuctionSelectionModel> auctionSelectionModel, <String> optName )
|
int
|
lotCount( lotnum )
return how many lots have the given lot number |
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 |
AuctionModel()
| Method Detail |
EDOIndex _appendLot( <int> i, <EDO> edo )
i - lot list index
edo - the lot
Auction _getAuction( <int> i )
i - index into auction list
Lot _getLot( <int> i )
i - index into lot list
void _insertLot( xi )
i - lot list index
edo - the shipping
EDOIndex _newAuction( <int> i, auctionEDO )
i - auction list index
edo - the auction
EDO _newEDO(<EDOIndex> xi)
xi - edo index
ListModel _newLots()
void _resetEDOs( optAuction )
void _setAuction(o)
EDOIndex appendEDO(<EDOIndex> xi)
xi - edo index
EDOIndex createEDO(<EDOIndex> xi)
xi - edo index
EDOHolderSelectionItem createSelectionItem()
String dump()
Object getEDO(<ALIndex> xi)
xi - edo index
String getID()
Object getUpdatedProperty()
boolean hasEDO()
boolean isDirty()
boolean isValid()
boolean keysMatch(<EDOHolderSelectionItem> item)
item - selection menu item
void konstructor( <AuctionSelectionModel> auctionSelectionModel, <String> optName )
auctionSelectionModel - model of which Auction is selected
optName - optional name of this instance
int lotCount( lotnum )
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 | ||||||||