The Gravey 2.5 Framework and AIM RIA

Class BidderModel

Object
   |
   +--BidderModel

class 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.


Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:Defined in aimbidders.js


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

BidderModel()

Method Detail

_appendContact

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

_appendShipping

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

_getBidder

Bidder _getBidder( <int> i )

_getContact

Contact _getContact( <int> i )

_getShipping

Shipping _getShipping( <int> i )

_insertContact

void _insertContact( <int> i, <EDO> edo )

_insertShipping

void _insertShipping( xi )

_newBidder

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

_newContacts

MVCListModel _newContacts()

_newEDO

EDO _newEDO(<EDOIndex> xi)

_newShipping

MVCListModel _newShipping()

_resetEDOs

void _resetEDOs( optBidder )

_setBidder

void _setBidder(o)

appendEDO

EDOIndex appendEDO(<EDOIndex> xi)

createEDO

EDOIndex createEDO(<EDOIndex> xi)

createSelectionItem

EDOHolderSelectionItem createSelectionItem()

dump

String dump()

getEDO

Object getEDO(<BSCIndex> xi)

getName

String getName()

getUpdatedProperty

Object getUpdatedProperty()

hasEDO

boolean hasEDO()

inactive

boolean inactive()

isDirty

boolean isDirty()

isValid

boolean isValid()

keysMatch

boolean keysMatch(<EDOHolderSelectionItem> item)

konstructor

void konstructor( <BidderSelectionModel> BidderSelectionModel, <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