Package io.jenkins.plugins.datatables
Klasse TableColumn
java.lang.Object
io.jenkins.plugins.datatables.TableColumn
Provides a model for table columns that are rendered with JQuery DataTables. The model consists of the following
parts:
- header label
- header CSS class
- column definition
- responsive priority
- tooltip
- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Builder forTableColumn
instances.static enum
Supported CSS classes that will enable special handling or rendering for table columns.static enum
Supported DataTables column types. -
Konstruktorübersicht
KonstruktorBeschreibungTableColumn
(String headerLabel, String dataPropertyName) Veraltet.TableColumn
(String headerLabel, String dataPropertyName, String columnDataType) Veraltet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getWidth()
Veraltet.it makes more sense to let DataTables decide which columns to showstatic String
renderDetailsColumn
(String detailsText) Renders an expandable details-column with the specified text.static String
renderDetailsColumn
(String detailsText, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) Renders an expandable details-column with the specified text.setHeaderClass
(TableColumn.ColumnCss headerClass) Veraltet.setWidth
(int width) Veraltet.it makes more sense to let DataTables decide which columns to show
-
Konstruktordetails
-
TableColumn
Veraltet.Creates a simple column: it maps the specified property of the row entity to the column value.- Parameter:
headerLabel
- the label of the column headerdataPropertyName
- the property to extract from the entity, it will be shown as column value
-
TableColumn
Veraltet.Creates a complex column: it maps the specified property of the row entity to the display and sort attributes of the column. The propertydataPropertyName
must be of typeDetailedCell
.- Parameter:
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 column
-
-
Methodendetails
-
renderDetailsColumn
Renders an expandable details-column with the specified text.- Parameter:
detailsText
- the text to show if the column has been expanded.- Gibt zurück:
- the HTML div to create the details column
-
renderDetailsColumn
public static String renderDetailsColumn(String detailsText, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) Renders an expandable details-column with the specified text.- Parameter:
detailsText
- the text to show if the column has been expanded.jenkinsFacade
- facade for Jenkins API calls to get symbols- Gibt zurück:
- the HTML div to create the details column
-
setHeaderClass
Veraltet.Sets the CSS class for the column<th>
tag. Multiple classes need to be separated using a space.- Parameter:
headerClass
- the CSS class(es) for the<th>
tag- Gibt zurück:
- this column
-
setWidth
Veraltet.it makes more sense to let DataTables decide which columns to showNot supported anymore.- Parameter:
width
- the width- Gibt zurück:
- this column
- Siehe auch:
-
getHeaderLabel
-
getHeaderClass
-
getWidth
Veraltet.it makes more sense to let DataTables decide which columns to showReturns the width of the column.- Gibt zurück:
- the width
-
getDefinition
-
TableColumn.ColumnBuilder