public class DefaultCellDecorator extends java.lang.Object implements IGridCellDecorator, IEditableGridCellDecorator, ITreeCellDecorator
Constructor and Description |
---|
DefaultCellDecorator() |
DefaultCellDecorator(int maxLen) |
Modifier and Type | Method and Description |
---|---|
Cell |
getCell(IGridModel model,
int rowIndex,
int columnIndex,
IColumn column) |
Cell |
getCell(IGridModel model,
int rowIndex,
int columnIndex,
IColumn column,
ITreeNode node) |
Cell |
getEditingCell(IEditableGridModel model,
int rowIndex,
int columnIndex,
java.lang.String columnName,
IColumn column)
The
IForm field name and the IEditableGridModel column name
must match. |
Cell |
getEmptyRowCell(IGridModel model,
int rowIndex) |
java.lang.String |
getFormattedCellValue(java.lang.Object value,
int columnIndex,
IColumn column) |
HCell |
getGHCell(IGridModel model,
java.lang.String groupId,
int... columnIndexes) |
HCell |
getHCell(IGridModel model,
int columnIndex,
IColumn column) |
Cell |
getRowHeadingCell(IGridModel model,
int rowIndex) |
Cell |
getRowHeadingCell(IGridModel model,
int rowIndex,
ITreeNode node) |
public DefaultCellDecorator()
public DefaultCellDecorator(int maxLen)
public HCell getGHCell(IGridModel model, java.lang.String groupId, int... columnIndexes)
getGHCell
in interface ICellDecorator
HCell
used to render group of columns header cell.public HCell getHCell(IGridModel model, int columnIndex, IColumn column)
getHCell
in interface ICellDecorator
HCell
used to render the column header cell.public Cell getRowHeadingCell(IGridModel model, int rowIndex)
getRowHeadingCell
in interface IGridCellDecorator
Cell
object used to render the first column of a rowpublic Cell getEmptyRowCell(IGridModel model, int rowIndex)
getEmptyRowCell
in interface ICellDecorator
Cell
object used to render the first column of empty rowspublic java.lang.String getFormattedCellValue(java.lang.Object value, int columnIndex, IColumn column)
getFormattedCellValue
in interface ICellDecorator
public Cell getCell(IGridModel model, int rowIndex, int columnIndex, IColumn column)
getCell
in interface IGridCellDecorator
Cell
object used to render a single table cell containing datapublic Cell getEditingCell(IEditableGridModel model, int rowIndex, int columnIndex, java.lang.String columnName, IColumn column)
IForm
field name and the IEditableGridModel
column name
must match.getEditingCell
in interface IEditableGridCellDecorator
columnName
- - this is also the name of the field to be binded
in the editing form.public Cell getCell(IGridModel model, int rowIndex, int columnIndex, IColumn column, ITreeNode node)
getCell
in interface ITreeCellDecorator
public Cell getRowHeadingCell(IGridModel model, int rowIndex, ITreeNode node)
getRowHeadingCell
in interface ITreeCellDecorator