public interface ItsNatTableCellRenderer
ItsNatComponentManager.createDefaultItsNatTableCellRenderer(),
ItsNatTable.getItsNatTableCellRenderer(),
ItsNatTable.setItsNatTableCellRenderer(ItsNatTableCellRenderer)| Modifier and Type | Method and Description |
|---|---|
void |
renderTableCell(ItsNatTable table,
int row,
int column,
Object value,
boolean isSelected,
boolean hasFocus,
Element cellContentElem,
boolean isNew)
Renders as markup the specified table cell value into the specified element, usually
as a text node.
|
void |
unrenderTableCell(ItsNatTable table,
int row,
int column,
Element cellContentElem)
Unrenders the markup of the specified table cell.
|
void renderTableCell(ItsNatTable table, int row, int column, Object value, boolean isSelected, boolean hasFocus, Element cellContentElem, boolean isNew)
Default implementation delegates to the default ElementRenderer.
Default implementation ignores isSelected and hasFocus
(current implementation of ItsNat tables does not handle focus on table cells, ever is false).
table - the table component, may be used to provide contextual information. Default implementation ignores it.row - the cell row.column - the cell column.value - the value to render.isSelected - true if the cell is selected.hasFocus - true if the cell has the focus.cellContentElem - the table cell content element to render the value into. Is a hint, if provided should be obtained by calling table.getItsNatTableUI().getCellContentElement(row,column).isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter.void unrenderTableCell(ItsNatTable table, int row, int column, Element cellContentElem)
Default implementation does nothing.
table - the table component, may be used to provide contextual information. Default implementation ignores it.row - the cell row.column - the cell column.cellContentElem - the table cell content element to render the value into. Is a hint, if provided should be obtained by calling table.getItsNatTableUI().getCellContentElement(row,column).Copyright © Innowhere Software, Jose Maria Arranz Santamaria.