public static class TableModel.ColumnDefinitionBuilder extends Object
| Constructor and Description |
|---|
ColumnDefinitionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TableModel.ColumnDefinitionBuilder |
add(String dataPropertyName)
Adds a new simple column that maps the specified property of the row entity to the column value.
|
TableModel.ColumnDefinitionBuilder |
add(String dataPropertyName,
String columnDataType)
Adds a new complex column that maps the specified property of the row entity to the display and sort
attributes of the column.
|
String |
toString() |
public TableModel.ColumnDefinitionBuilder add(String dataPropertyName)
dataPropertyName - the property to extract from the entity, it will be shown as column valuepublic TableModel.ColumnDefinitionBuilder add(String dataPropertyName, String columnDataType)
dataPropertyName must be of type TableModel.DetailedColumnDefinition.dataPropertyName - the property to extract from the entity, it will be shown as column valuecolumnDataType - JQuery DataTables data type of the columnTableModel.DetailedColumnDefinitionCopyright © 2016–2019. All rights reserved.