JIDE 3.5.15

com.jidesoft.grid
Class AbstractRow

java.lang.Object
  extended by com.jidesoft.grid.AbstractNode
      extended by com.jidesoft.grid.AbstractRow
All Implemented Interfaces:
Node, Row
Direct Known Subclasses:
IndexReferenceRow

public abstract class AbstractRow
extends AbstractNode
implements Row

An abstract row implements. It implements two methods in Row to achieve a read-only Row.


Field Summary
 
Fields inherited from class com.jidesoft.grid.AbstractNode
_parent, PROPERTY_PARENT
 
Fields inherited from interface com.jidesoft.grid.Node
PROPERTY_ADJUSTING
 
Constructor Summary
AbstractRow()
           
 
Method Summary
 void cellUpdated(int columnIndex)
          Notifies the cell at the specified column is updated.
 Class<?> getCellClassAt(int columnIndex)
          Gets the type for the cell at columnIndex.
 ConverterContext getConverterContextAt(int columnIndex)
          Gets the converter context for the cell at columnIndex.
 EditorContext getEditorContextAt(int columnIndex)
          Gets the editor context for the cell at columnIndex.
 boolean isCellEditable(int columnIndex)
          Returns true if the cell at columnIndex is editable.
 void rowUpdated()
          Notifies the row is updated.
 void setValueAt(Object value, int columnIndex)
          Sets the value in the cell at columnIndex.
 
Methods inherited from class com.jidesoft.grid.AbstractNode
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getLevel, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.grid.Row
getValueAt
 
Methods inherited from interface com.jidesoft.grid.Node
getLevel, getNextSibling, getParent, getPreviousSibling, setParent
 

Constructor Detail

AbstractRow

public AbstractRow()
Method Detail

isCellEditable

public boolean isCellEditable(int columnIndex)
Description copied from interface: Row
Returns true if the cell at columnIndex is editable. Otherwise, setValueAt on the cell will not change the value of that cell.

Specified by:
isCellEditable in interface Row
Parameters:
columnIndex - the column whose value to be queried
Returns:
true if the cell is editable
See Also:
Row.setValueAt(java.lang.Object, int)

getConverterContextAt

public ConverterContext getConverterContextAt(int columnIndex)
Description copied from interface: Row
Gets the converter context for the cell at columnIndex.

Specified by:
getConverterContextAt in interface Row
Parameters:
columnIndex - the column index
Returns:
the converter context for the specified cell.

getEditorContextAt

public EditorContext getEditorContextAt(int columnIndex)
Description copied from interface: Row
Gets the editor context for the cell at columnIndex.

Specified by:
getEditorContextAt in interface Row
Parameters:
columnIndex - the column index
Returns:
the editor context for the specified cell.

getCellClassAt

public Class<?> getCellClassAt(int columnIndex)
Description copied from interface: Row
Gets the type for the cell at columnIndex.

Specified by:
getCellClassAt in interface Row
Parameters:
columnIndex - the column index
Returns:
the type for the specified cell.

setValueAt

public void setValueAt(Object value,
                       int columnIndex)
Description copied from interface: Row
Sets the value in the cell at columnIndex.

Specified by:
setValueAt in interface Row
Parameters:
value - the new value
columnIndex - the column whose value is to be changed
See Also:
Row.getValueAt(int), Row.isCellEditable(int)

cellUpdated

public void cellUpdated(int columnIndex)
Description copied from interface: Row
Notifies the cell at the specified column is updated.

Specified by:
cellUpdated in interface Row
Parameters:
columnIndex - the column index the column index.

rowUpdated

public void rowUpdated()
Description copied from interface: Row
Notifies the row is updated. You can call this method if any of the cells are changed. But if you know exactly which cell is changed, you should use Row.cellUpdated(int) instead.

Specified by:
rowUpdated in interface Row

JIDE 3.5.15