jsm

Class JsmWidget

Object
   |
   +--JsmObject
         |
         +--JsmWidget
Direct Known Subclasses:
JsmCheckBox, JsmTextField, JsmSelectField

class JsmWidget
extends JsmObject


Base object for widgets
Defined in net/sf/jsm/widgets/++jsmWidget.js


 
Fields inherited from class JsmObject
className, id, META_DATA_NAME_PROPERTY_PATH, META_DATA_NAME_VALUE, _attributes, _metaData
 
Constructor Summary
JsmWidget ()
            JsmWidget should be considered abstract.
 
Method Summary
 Object addValidator(validator)
           Add a validator
 void clone()
           Clone this widget
 void getNode()
           Each widget to be attached to a JsmTable has to implement this method!
 Array getValidators()
           Get all attached validators
 void init(<JsmTd> theTd)
           Each widget to be attached to a JsmTable has to implement this method!
 Object removeValidators()
           Remove all attached validators
 void updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
           Each widget to be attached to a JsmTable has to implement this method!
 boolean validate(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
           A widget should call this method before updating the model and if it returns false the model should not be updated.
 
Methods inherited from class JsmObject
toString, identify, setId, getId, setAttribute, getAttribute, setMetaData, getMetaData, addAttributesToViewComponent
 

Constructor Detail

JsmWidget

JsmWidget()

Method Detail

addValidator

Object addValidator(validator)

clone

void clone()

getNode

void getNode()

getValidators

Array getValidators()

init

void init(<JsmTd> theTd)

removeValidators

Object removeValidators()

updateModel

void updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)

validate

boolean validate(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)

jsm

Documentation generated by JSDoc on Tue Sep 26 08:42:57 2006