public class RowNumbererDefaultAppearance extends Object implements RowNumberer.RowNumbererAppearance
Modifier and Type | Class and Description |
---|---|
static interface |
RowNumbererDefaultAppearance.RowNumbererResources |
static interface |
RowNumbererDefaultAppearance.RowNumbererStyles |
Constructor and Description |
---|
RowNumbererDefaultAppearance() |
RowNumbererDefaultAppearance(RowNumbererDefaultAppearance.RowNumbererResources resources) |
Modifier and Type | Method and Description |
---|---|
String |
getCellClassName()
A CSS class to append to every cell in the grid.
|
void |
renderCell(int rowNumber,
SafeHtmlBuilder sb)
Renders the row numberer cell within each row of the grid
|
SafeHtml |
renderHeader()
The html content to display in the header of the grid
|
public RowNumbererDefaultAppearance()
public RowNumbererDefaultAppearance(RowNumbererDefaultAppearance.RowNumbererResources resources)
public String getCellClassName()
RowNumberer.RowNumbererAppearance
getCellClassName
in interface RowNumberer.RowNumbererAppearance
ColumnConfig.getCellClassName()
public void renderCell(int rowNumber, SafeHtmlBuilder sb)
RowNumberer.RowNumbererAppearance
renderCell
in interface RowNumberer.RowNumbererAppearance
rowNumber
- the current 1-indexed row numbersb
- the SafeHtmlBuilder to append the new html content topublic SafeHtml renderHeader()
RowNumberer.RowNumbererAppearance
renderHeader
in interface RowNumberer.RowNumbererAppearance
Copyright © 2018. All rights reserved.