|
The Gravey 2.5 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--BidderModel
This class encapsulates the data model of a particular Bidder.
This model subscribes to a BidderSelectionModel
so that new Contact and Shipping lists can be downloaded whenever
a new Bidder is selected.
NOTE: Other parts of AIM assume that the Contact and Shipping lists will never be null; zero items is ok though.
| Constructor Summary | |
BidderModel
()
|
|
| Method Summary | |
EDOIndex
|
_appendContact( <int> i, <EDO> edo )
append a new Contact |
EDOIndex
|
_appendShipping( <int> i, <EDO> edo )
append a new Shipping |
Bidder
|
_getBidder( <int> i )
return the specified Bidder |
Contact
|
_getContact( <int> i )
return the specified contact |
Shipping
|
_getShipping( <int> i )
return the specified Shipping |
void
|
_insertContact( <int> i, <EDO> edo )
insert a new Contact |
void
|
_insertShipping( xi )
insert a new Shipping |
EDOIndex
|
_newBidder( <int> i, <EDO> edo )
create a new Bidder |
MVCListModel
|
_newContacts()
get a new Contacts list |
EDO
|
_newEDO(<EDOIndex> xi)
return a new blank EDO of the type implied by EDOIndex |
MVCListModel
|
_newShipping()
get a new Shipping list |
void
|
_resetEDOs( optBidder )
clear EDOs |
void
|
_setBidder(o)
set our Bidder 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(<BSCIndex> xi)
return reference to the specified editable domain object |
String
|
getName()
return the parent Bidder 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
|
inactive()
return the parent Bidder isInactive flag |
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( <BidderSelectionModel> BidderSelectionModel, <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 |
BidderModel()
| Method Detail |
EDOIndex _appendContact( <int> i, <EDO> edo )
i - contact list index
edo - the contact
EDOIndex _appendShipping( <int> i, <EDO> edo )
i - Shipping list index
edo - the Shipping
Bidder _getBidder( <int> i )
i - index into Bidder list
Contact _getContact( <int> i )
i - index into contact list
Shipping _getShipping( <int> i )
i - index into Shipping list
void _insertContact( <int> i, <EDO> edo )
i - contact list index
edo - the contact
void _insertShipping( xi )
i - Shipping list index
edo - the Shipping
EDOIndex _newBidder( <int> i, <EDO> edo )
i - Bidder list index
edo - the Bidder
MVCListModel _newContacts()
EDO _newEDO(<EDOIndex> xi)
xi - edo index
MVCListModel _newShipping()
void _resetEDOs( optBidder )
void _setBidder(o)
EDOIndex appendEDO(<EDOIndex> xi)
xi - edo index
EDOIndex createEDO(<EDOIndex> xi)
xi - edo index
EDOHolderSelectionItem createSelectionItem()
String dump()
Object getEDO(<BSCIndex> xi)
xi - edo index
String getName()
Object getUpdatedProperty()
boolean hasEDO()
boolean inactive()
boolean isDirty()
boolean isValid()
boolean keysMatch(<EDOHolderSelectionItem> item)
item - selection menu item
void konstructor( <BidderSelectionModel> BidderSelectionModel, <String> optName )
BidderSelectionModel - model of which Bidder 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.5 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||