Package io.jenkins.plugins.datatables
Klasse TableColumn.ColumnBuilder
java.lang.Object
io.jenkins.plugins.datatables.TableColumn.ColumnBuilder
- Umschließende Klasse:
TableColumn
Builder for
TableColumn instances.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()Creates a newTableColumnbased on the specified builder configuration.withDataPropertyKey(String dataPropertyKey) Sets the key of the JSON property in the corresponding row entities that should be shown in this column.Enables the rendering of cells that use theDetailedCellformat.withHeaderClass(TableColumn.ColumnCss headerClass) Sets the CSS class for the column<th>tag.withHeaderLabel(String headerLabel) Sets the label of the header for this column.withResponsivePriority(int priority) Sets the priority of this column.withType(TableColumn.ColumnType columnType) Sets the data type of the column.
-
Konstruktordetails
-
ColumnBuilder
public ColumnBuilder()
-
-
Methodendetails
-
withType
Sets the data type of the column.- Parameter:
columnType- type of the column- Gibt zurück:
- this
- Siehe auch:
-
withDataPropertyKey
Sets the key of the JSON property in the corresponding row entities that should be shown in this column.- Parameter:
dataPropertyKey- name of the property in the corresponding row entity that should be shown in this column- Gibt zurück:
- this
-
withResponsivePriority
Sets the priority of this column. This priority will be evaluated when the table is created with theresponsiveoption enabled. In this case the columns will automatically hide columns in a table so that the table fits horizontally into the space given to it. If not set, the DataTables default ofDEFAULT_PRIORITYwill be used.- Parameter:
priority- the priority of this column- Gibt zurück:
- this column
- Siehe auch:
-
withHeaderLabel
Sets the label of the header for this column. This header will be used as text in the<th>tag of the corresponding table.- Parameter:
headerLabel- label of the column- Gibt zurück:
- this
-
withHeaderClass
Sets the CSS class for the column<th>tag.- Parameter:
headerClass- the CSS class(es) for the<th>tag- Gibt zurück:
- this column
-
withDetailedCell
Enables the rendering of cells that use theDetailedCellformat. Such cells can use different properties to sort and display the cell values.- Gibt zurück:
- this column
-
build
Creates a newTableColumnbased on the specified builder configuration.- Gibt zurück:
- the created
TableColumn - Löst aus:
IllegalArgumentException- if the configuration is invalid
-