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 MVCScalarEditCmd

    Object
       |
       +--GrvObject
             |
             +--MVCCommand
                   |
                   +--MVCScalarEditCmd

Direct Known Subclasses:
  TrTypeMenuCmd

class MVCScalarEditCmd
extends MVCCommand

This class implements a scalar edit command.

This code should work with either standalone scalar edit controllers, or, with scalar edit controllers that are embedded within "dual" controllers that contain editor and viewer child controllers and therefore may have data model(s) at the "dual" level to update that are separate from the edit controller data model.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCScalarEditCmd ()`

Method Summary
`String` | `details()` return details of this command for user viewing
`void` | `doit()` set our controller to the new value
`Object` | `getFormattedValue( value )` return the formatted version of the given value using controller's formatter
`void` | `konstructor( <String> viewID )`
`void` | `undo()` set our controller to the old value
`void` | `updateController(value)` stuff the given value into our controller's view

Methods inherited from class MVCCommand
`redo, toString, isInvalid, syncDo, syncDoIt, syncUnDo, syncReDo, DOIT, REDO, UNDO`

Methods inherited from class GrvObject
`souper`

Constructor Detail

### MVCScalarEditCmd

    MVCScalarEditCmd()

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

- konstructor()

Method Detail

### details

    String details()

return details of this command for user viewing

### doit

    void doit()

set our controller to the new value

### getFormattedValue

    Object getFormattedValue( value )

return the formatted version of the given value using controller's formatter

### konstructor

    void konstructor( <String> viewID )

Parameters:

`viewID` - ID of controller generating this command

### undo

    void undo()

set our controller to the old value

### updateController

    void updateController(value)

stuff the given value into our controller's view

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