The Gravy Framework

Class ScalarEditCmd

Object
   |
   +--OObject
         |
         +--Command
               |
               +--ScalarEditCmd
Direct Known Subclasses:
TrTypeMenuCmd

class ScalarEditCmd
extends Command


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

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

Version: 1.0


Constructor Summary
ScalarEditCmd ()
           
 
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 Command
redo, toString, isInvalid, syncDoIt, syncUnDo, syncReDo, DOIT, REDO, UNDO
 

Constructor Detail

ScalarEditCmd

ScalarEditCmd()

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

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