public class HierarchicalGridRenderer extends DefaultGridRenderer
ExpandableCell
s if the grid model
has submodels.Modifier and Type | Class and Description |
---|---|
protected class |
HierarchicalGridRenderer.DisablingEventManager
This handler enables / disables the event manager of this grid on subgrids activation.
|
DefaultGridRenderer.DrawRowCommand
Constructor and Description |
---|
HierarchicalGridRenderer(EditableGrid grid)
Creates an instance of this class and initializes the grid cell factory.
|
Modifier and Type | Method and Description |
---|---|
void |
drawCell(Object data,
int row,
int column,
boolean active)
This method draws a particular cell.
|
void |
drawColumn(Object[] data,
int column,
boolean overwrite)
This method draws a column.
|
void |
drawContent(GridDataModel model)
This method renders grid content.
|
protected void |
dropWrongSelection(int parentRow,
int step)
This method drops selection if the specified row is less then one one currently selected rows.
|
HierarchicalGridRenderer.DisablingEventManager |
getDisablingFocusManager()
Getter for property 'disablingFocusManager'.
|
int |
getModelRow(int row)
This method converts grid row number to model row number.
|
int |
getRowByModelRow(int modelRow)
Gets a grid row number on the displayed page by a model row number.
|
protected int |
getSubgridRowsBefore(int row)
This method calculates subgrid rows number before the specified row.
|
protected void |
removeSubgrid(int parentRow,
int parentColumn)
This method collapses the cell and removes an appropriate subgrid row.
|
protected void |
renderSubgrid(int parentRow,
int parentColumn)
This method expands the cell and adds a subgrid row below the current row.
|
decorateCell, drawHeaders, drawRow, formatDate, formatString, getCellFactory, getGrid, getListBoxText, getTBodyElement, getTHeadElement, setCellText, setCellWidget
public HierarchicalGridRenderer(EditableGrid grid)
grid
- is a target grid.public void drawContent(GridDataModel model)
drawContent
in interface GridRenderer
drawContent
in class DefaultGridRenderer
model
- is a model to be applied.public void drawCell(Object data, int row, int column, boolean active)
drawCell
in interface GridRenderer
drawCell
in class DefaultGridRenderer
data
- is a cell data.row
- is a row number.column
- is a column number.active
- is a falg that indicates that the cell must be active.public int getModelRow(int row)
getModelRow
in interface GridRenderer
getModelRow
in class DefaultGridRenderer
row
- is a row number.public int getRowByModelRow(int modelRow)
getRowByModelRow
in interface GridRenderer
getRowByModelRow
in class DefaultGridRenderer
modelRow
- is a model row number.public void drawColumn(Object[] data, int column, boolean overwrite)
drawColumn
in interface GridRenderer
drawColumn
in class DefaultGridRenderer
data
- is a column data to draw.column
- is a column numberoverwrite
- is a flag that means whether it's required to overwrite the column cells.protected int getSubgridRowsBefore(int row)
row
- is a row number.protected void renderSubgrid(int parentRow, int parentColumn)
parentRow
- is a row number.parentColumn
- is a column number.protected void removeSubgrid(int parentRow, int parentColumn)
parentRow
- is a row number..parentColumn
- is a column number.protected void dropWrongSelection(int parentRow, int step)
parentRow
- is a row number to check.step
- is a difference between the selected row and newly selected row. May be negative.public HierarchicalGridRenderer.DisablingEventManager getDisablingFocusManager()
Copyright © 2008–2013. All rights reserved.