public class TableColumn extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableColumn.ColumnCss
Supported CSS classes that will enable special handling or rendering for table columns.
|
| Constructor and Description |
|---|
TableColumn(String headerLabel,
String dataPropertyName)
Creates a simple column: it maps the specified property of the row entity to the column value.
|
TableColumn(String headerLabel,
String dataPropertyName,
String columnDataType)
Creates a complex column: it maps the specified property of the row entity to the display and sort attributes of
the column.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefinition() |
String |
getHeaderClass() |
String |
getHeaderLabel() |
int |
getWidth() |
TableColumn |
setHeaderClass(TableColumn.ColumnCss headerClass) |
TableColumn |
setWidth(int width) |
public TableColumn(String headerLabel, String dataPropertyName)
headerLabel - the label of the column headerdataPropertyName - the property to extract from the entity, it will be shown as column valuepublic TableColumn(String headerLabel, String dataPropertyName, String columnDataType)
dataPropertyName must be of type TableModel.DetailedColumnDefinition.headerLabel - the label of the column headerdataPropertyName - the property to extract from the entity, it will be shown as column valuecolumnDataType - JQuery DataTables data type of the columnpublic TableColumn setHeaderClass(TableColumn.ColumnCss headerClass)
public TableColumn setWidth(int width)
public String getHeaderLabel()
public String getHeaderClass()
public int getWidth()
public String getDefinition()
Copyright © 2016–2019. All rights reserved.