The Gravey Framework and RATS RIA

Class TransactionSelectedModel

Object
   |
   +--GrvObject
         |
         +--MVCObserver
               |
               +--MVCModel
                     |
                     +--MVCScalarModel
                           |
                           +--MVCBoolModel
                                 |
                                 +--TransactionSelectedModel

class TransactionSelectedModel
extends MVCBoolModel


This class encapsulates the data model for the flag indicating whether a Transaction is selected. If a new account is selected (thus loading new data) this flag gets reset to false. This model also keeps track of which Transaction is selected.
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in rats.js


Constructor Summary
TransactionSelectedModel ()
           
 
Method Summary
 void _select(<int> si,<int> ri)
           select the specified transaction
 void _unselect()
           change to "nothing selected"
 void appendTransaction( <int> balanceIndex )
           insert new transaction at end of specified balance list and select it
 void deleteSelected()
           delete selected transaction
 void editSelected()
           edit selected transaction
 void forceFlag(f)
           force the "something is selected" flag to specified value and publish
 Transaction getSelected(<int> si,<int> ri)
           return the specified transaction
 boolean hasSelection()
           return whether a transaction is selected
 boolean inEdit()
           return whether selected transaction is in edit mode
 boolean isSelected(<int> si,<int> ri)
           return whether specified transaction is selected
 void konstructor( <AccountSelectionModel> accountSelectionModel, <BalanceListModel> sModel, <String> optName )
          
 void newAfterSelected()
           insert new transaction after selected transaction and select it
 void select(<int> si,<int> ri)
           select (and publish) the specified transaction
 void toggle(<int> si,<int> ri)
           Make the specified transaction selected, unless it is currently selected then merely deselect it.
 void undelete( <int> si, <int> ri )
           undelete specified transaction
 void uneditSelected()
           unedit selected transaction
 void unselect()
           _unselect() and publish
 void update()
           handle update events from the Account Selection Model
 
Methods inherited from class MVCBoolModel
isTrue, setFlag
   
Methods inherited from class MVCScalarModel
_setValue, setValue, getValue, _setValidity, getValidity
   
Methods inherited from class MVCModel
dumpSubscribers, toString, dirty, clean, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class MVCObserver
subscribe
   
Methods inherited from class GrvObject
souper
 

Constructor Detail

TransactionSelectedModel

TransactionSelectedModel()

Method Detail

_select

void _select(<int> si,<int> ri)

_unselect

void _unselect()

appendTransaction

void appendTransaction( <int> balanceIndex )

deleteSelected

void deleteSelected()

editSelected

void editSelected()

forceFlag

void forceFlag(f)

getSelected

Transaction getSelected(<int> si,<int> ri)

hasSelection

boolean hasSelection()

inEdit

boolean inEdit()

isSelected

boolean isSelected(<int> si,<int> ri)

konstructor

void konstructor( <AccountSelectionModel> accountSelectionModel, <BalanceListModel> sModel, <String> optName )

newAfterSelected

void newAfterSelected()

select

void select(<int> si,<int> ri)

toggle

void toggle(<int> si,<int> ri)

undelete

void undelete( <int> si, <int> ri )

uneditSelected

void uneditSelected()

unselect

void unselect()

update

void update()

The Gravey Framework and RATS RIA

Documentation generated by JSDoc on Sat Dec 8 21:52:02 2007