Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:

- konstructor()

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()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### _select

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

select the specified transaction

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### _unselect

    void _unselect()

change to "nothing selected"

### appendTransaction

    void appendTransaction( <int> balanceIndex )

insert new transaction at end of specified balance list and select it

Parameters:

`balanceIndex` - index into balance list for current Account

### deleteSelected

    void deleteSelected()

delete selected transaction

### editSelected

    void editSelected()

edit selected transaction

### forceFlag

    void forceFlag(f)

force the "something is selected" flag to specified value and publish

### getSelected

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

return the specified transaction

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### hasSelection

    boolean hasSelection()

return whether a transaction is selected

### inEdit

    boolean inEdit()

return whether selected transaction is in edit mode

### isSelected

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

return whether specified transaction is selected

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### konstructor

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

Parameters:

`accountSelectionModel` - selection model

`sModel` - balance list model

`optName` - optional name of this instance

### newAfterSelected

    void newAfterSelected()

insert new transaction after selected transaction and select it

### select

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

select (and publish) the specified transaction

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### toggle

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

Make the specified transaction selected, unless it is currently selected then merely deselect it.

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### undelete

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

undelete specified transaction

Parameters:

`si` - index into balance list for current Account

`ri` - index into transaction list for specified balance

### uneditSelected

    void uneditSelected()

unedit selected transaction

### unselect

    void unselect()

_unselect() and publish

### update

    void update()

handle update events from the Account Selection Model

Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011