com.eliad.model
Interface GridCellEditor
- All Known Implementing Classes:
- DefaultGridCellEditor
- public interface GridCellEditor
- extends javax.swing.CellEditor
This interface defines the method required from any object that
would like to be an editor for cells or spans in a Component
that can provide a GridContext
like the JSmartGrid
.
The StyleModel
is an interface that provides GridCellEditor
.
A default implementation of the StyleModel
is the DefaultStyleModel
.
- Version:
- 1.0
- Author:
- Stephan Szymkowicz
- See Also:
StyleModel
,
GridContext
,
DefaultStyleModel
Method Summary |
java.awt.Component |
getComponent(java.lang.Object value,
boolean isSelected,
int row,
int column,
GridContext gridContext)
Returns the Component used for editing the cell or span
of the Value according to the GridContext . |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener,
cancelCellEditing,
getCellEditorValue,
isCellEditable,
removeCellEditorListener,
shouldSelectCell,
stopCellEditing |
getComponent
public java.awt.Component getComponent(java.lang.Object value,
boolean isSelected,
int row,
int column,
GridContext gridContext)
- Returns the
Component
used for editing the cell or span
of the Value
according to the GridContext
. This component
will edit the cell defined by the row
and column
in the parameters.
This method is used to appropriately configure the editor before editing.
- Parameters:
value
- the value of the cell defines
as (row,column) to be edited.isSelected
- if true
the current cell or span
defines in the GridContext is selected.hasFocus
- if true
the current cell or span
defines in the GridContext got the focus.row
- the row of the cell where the value attached.column
- the column of the cell where the value attached.gridContext
- the context of the cell or span to be edited.- See Also:
GridContext
,
JSmartGrid