jsm

Class JsmCheckBox

Object
   |
   +--JsmObject
         |
         +--JsmWidget
               |
               +--JsmCheckBox

class JsmCheckBox
extends JsmWidget


Represents a checkbox
Defined in net/sf/jsm/widgets/jsmCheckBox.js


Field Summary
 Object notSelectedValue
          The value to display if the checkbox is not select
 Object selected
          Is this checkbox selected
 Object selectedValue
          The value to display if the checkbox is select
   
Fields inherited from class JsmObject
className, id, META_DATA_NAME_PROPERTY_PATH, META_DATA_NAME_VALUE, _attributes, _metaData
 
Constructor Summary
JsmCheckBox (<boolean> selected, <String> selectedValue, <String> notSelectedValue)
            Creates a new JsmCheckBox
 
Method Summary
 JsmCheckBox clone()
           Clones this JsmCheckBox
 Object getNode()
           Returns the node of the view component; the model (this) will be attached to the node as property 'model'
 String getNotSelectedValue(notSelectedValue)
           Get the value to display if the checkbox is not selected
 String getSelectedValue(selectedValue)
           Get the value to display if the checkbox is selected
 Object init(<JsmTd> theTd)
           Init this text field's value from with the tabel cells value
 boolean isSelected()
           Is this checkbox selected
 Object setNotSelectedValue(<String> notSelectedValue)
           Set the value to display if the checkbox is not selected
 Object setSelected(<boolean> selected)
           Specify if this checkbox is selected or not
 Object setSelectedValue(<String> selectedValue)
           Set the value to display if the checkbox is selected
 void updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
           Update the tabel model if all validators are passed; will update the value on the hosting {@JsmTd} object
 
Methods inherited from class JsmWidget
validate, addValidator, getValidators, removeValidators
   
Methods inherited from class JsmObject
toString, identify, setId, getId, setAttribute, getAttribute, setMetaData, getMetaData, addAttributesToViewComponent
 

Field Detail

notSelectedValue

Object notSelectedValue

selected

Object selected

selectedValue

Object selectedValue

Constructor Detail

JsmCheckBox

JsmCheckBox(<boolean> selected, <String> selectedValue, <String> notSelectedValue)

Method Detail

clone

JsmCheckBox clone()

getNode

Object getNode()

getNotSelectedValue

String getNotSelectedValue(notSelectedValue)

getSelectedValue

String getSelectedValue(selectedValue)

init

Object init(<JsmTd> theTd)

isSelected

boolean isSelected()

setNotSelectedValue

Object setNotSelectedValue(<String> notSelectedValue)

setSelected

Object setSelected(<boolean> selected)

setSelectedValue

Object setSelectedValue(<String> selectedValue)

updateModel

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

jsm

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