jsm

Class JsmTr

Object
   |
   +--JsmObject
         |
         +--JsmTr

class JsmTr
extends JsmObject


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

_actionCells

<private> Array _actionCells

_cells

<private> Array _cells

_dirty

<private> boolean _dirty

editMode

boolean editMode

i

<private> Object i

idx

int idx

onClickFunctionName

String onClickFunctionName

table

JsmTable table

Constructor Detail

JsmTr

JsmTr()

Method Detail

_addActionCell

 <private> Object _addActionCell(<JsmCell> cell)

addCell

Object addCell(<JsmTd> td)

getActionCell

JsmActionCell getActionCell(<int> columnIdx)

getCell

JsmTd getCell(columnIdxOrName)

getCells

Array getCells()

getIndex

int getIndex()

getJSONized

String getJSONized(onlyDirty)

getNode

Object getNode(specialClassName)

getOnClick

String getOnClick()

getSortColumnValue

String getSortColumnValue()

getTable

JsmTable getTable()

isDirty

boolean isDirty()

isEditMode

boolean isEditMode()

setDirty

Object setDirty(<boolean> dirty, <boolean> propagateToParent)

setEditMode

Object setEditMode(<boolean> editMode)

setOnClick

Object setOnClick(<String> functionName)

jsm

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