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)
Sets the CSS class for the column
<th> tag. |
TableColumn |
setWidth(int width)
Sets the width of the column.
|
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)
<th> tag. Multiple classes need to be separated using a space.headerClass - the CSS class(es) for the <th> tagpublic TableColumn setWidth(int width)
col-width-[width], see
jenkins-style.css for details about the actual percentages.width - the width CSS class to select for the columnpublic String getHeaderLabel()
public String getHeaderClass()
public int getWidth()
public String getDefinition()
Copyright © 2016–2019. All rights reserved.