|
jsm | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--JsmObject
|
+--JsmTr
A table row
Defined in net/sf/jsm/table/jsmTr.js
| Field Summary | |
<private> Array |
_actionCells
Array of actionCells |
<private> Array |
_cells
Array of cells |
<private> boolean |
_dirty
Indicates that at least one cell of this row is dirty |
boolean |
editMode
Indicates if this row is in edit mode |
<private> Object |
i
|
int |
idx
The row index |
String |
onClickFunctionName
The name of the function to call on click on a row; defaults to 'jsmOnTableRowClick' |
JsmTable |
table
The table this row is attached to; null if not yet assigned |
| Fields inherited from class JsmObject |
className, id, META_DATA_NAME_PROPERTY_PATH, META_DATA_NAME_VALUE, _attributes, _metaData
|
| Constructor Summary | |
JsmTr
()
A table row |
|
| Method Summary | |
<private> Object
|
_addActionCell(<JsmCell> cell)
Add an action cell |
Object
|
addCell(<JsmTd> td)
Add the cell |
JsmActionCell
|
getActionCell(<int> columnIdx)
Return the action cell |
JsmTd
|
getCell(columnIdxOrName)
Return the cell |
Array
|
getCells()
Return the cells of the row |
int
|
getIndex()
Return the row index |
String
|
getJSONized(onlyDirty)
Creates and returns a JSON expression of cell values. |
Object
|
getNode(specialClassName)
Get the node object; the model (this) will be attached to the node as property 'model' |
String
|
getOnClick()
|
String
|
getSortColumnValue()
Returns the value of the current sort column |
JsmTable
|
getTable()
|
boolean
|
isDirty()
|
boolean
|
isEditMode()
Is this row in edit mode |
Object
|
setDirty(<boolean> dirty, <boolean> propagateToParent)
Sets the dirty flag; if set to true will propagate this to the parent table; if set to false will check if other the other rows of parent table are also clean and propagate this to the parent table; if set to false will propagate this to the child cells |
Object
|
setEditMode(<boolean> editMode)
Set the edit mode flag of this row |
Object
|
setOnClick(<String> functionName)
Sets the name of the function to call on click on a row. |
| Methods inherited from class JsmObject |
toString, identify, setId, getId, setAttribute, getAttribute, setMetaData, getMetaData, addAttributesToViewComponent
|
| Field Detail |
<private> Array _actionCells
<private> Array _cells
<private> boolean _dirty
boolean editMode
<private> Object i
int idx
String onClickFunctionName
JsmTable table
| Constructor Detail |
JsmTr()
cells - Optional: Accepts JsmTd or JsmTh objects as arguments for which it will call addCell()
| Method Detail |
<private> Object _addActionCell(<JsmCell> cell)
cell -
Object addCell(<JsmTd> td)
td -
JsmActionCell getActionCell(<int> columnIdx)
columnIdx - The column idx
JsmTd getCell(columnIdxOrName)
columnIdxOrName - The column idx or name
Array getCells()
int getIndex()
String getJSONized(onlyDirty)
onlyDirty - {boolean} (Optional) Will only include data from cells marked as dirty
Object getNode(specialClassName)
specialClassName - The name of the special style class
String getOnClick()
String getSortColumnValue()
JsmTable getTable()
boolean isDirty()
boolean isEditMode()
Object setDirty(<boolean> dirty, <boolean> propagateToParent)
dirty -
propagateToParent - Should the change be propagated to the parent table
Object setEditMode(<boolean> editMode)
editMode -
Object setOnClick(<String> functionName)
functionName -
|
jsm | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||