The Gravy Framework

Class TransactionSelectedModel

Object
   |
   +--OObject
         |
         +--Observer
               |
               +--Model
                     |
                     +--ScalarModel
                           |
                           +--BoolModel
                                 |
                                 +--TransactionSelectedModel

class TransactionSelectedModel
extends BoolModel


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.
See:

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

Version: 1.0


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 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 BoolModel
isTrue, setFlag
   
Methods inherited from class ScalarModel
_setValue, setValue, getValue, _setValidity, getValidity
   
Methods inherited from class Model
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class Observer
subscribe
 

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)

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 Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006