|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--JsmObject | +--JsmWidget
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()
Method Detail |
Object addValidator(validator)
void clone()
void getNode()
Array getValidators()
void init(<JsmTd> theTd)
theTd
- The cell in which this widget will be displayed
Object removeValidators()
void updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
table
- The table this widget is attached to
rowIdx
- The index of the row
columnIdx
- The index of the column
theViewComponent
-
boolean validate(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
table
- The table the widget is attached to
rowIdx
- The index of the row this widget is displayed in
columnIdx
- The index of the column this widget is displayed in
theViewComponent
- The view object
|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |