The Gravey 2.0 Framework and AIM RIA

Class AuctionModel

Object
   |
   +--AuctionModel

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


Version: 2.0

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


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

AuctionModel()

Method Detail

_appendLot

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

_getAuction

Auction _getAuction( <int> i )

_getLot

Lot _getLot( <int> i )

_insertLot

void _insertLot( xi )

_newAuction

EDOIndex _newAuction( <int> i, auctionEDO )

_newEDO

EDO _newEDO(<EDOIndex> xi)

_newLots

ListModel _newLots()

_resetEDOs

void _resetEDOs( optAuction )

_setAuction

void _setAuction(o)

appendEDO

EDOIndex appendEDO(<EDOIndex> xi)

createEDO

EDOIndex createEDO(<EDOIndex> xi)

createSelectionItem

EDOHolderSelectionItem createSelectionItem()

dump

String dump()

getEDO

Object getEDO(<ALIndex> xi)

getID

String getID()

getUpdatedProperty

Object getUpdatedProperty()

hasEDO

boolean hasEDO()

isDirty

boolean isDirty()

isValid

boolean isValid()

keysMatch

boolean keysMatch(<EDOHolderSelectionItem> item)

konstructor

void konstructor( <AuctionSelectionModel> auctionSelectionModel, <String> optName )

lotCount

int lotCount( lotnum )

propMatch

boolean propMatch(<EDOHolderSelectionItem> item)

pushPosts

void pushPosts( <Array> posts )

toggleExpand

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

The Gravey 2.0 Framework and AIM RIA

Documentation generated by JSDoc on Sat Dec 8 21:51:03 2007