The Gravey Framework and RATS RIA

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:

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

Method Detail

details

String details()

doit

void doit()

getFormattedValue

Object getFormattedValue( value )

konstructor

void konstructor( <String> viewID )

undo

void undo()

updateController

void updateController(value)

The Gravey Framework and RATS RIA

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