Package io.jenkins.plugins.datatables
Class TableModel
java.lang.Object
io.jenkins.plugins.datatables.TableModel
Provides a model for tables that are rendered with JQuery DataTables. The model consists of the following parts:
- id for the table
- column model for each column
- content for each row
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List
<TableColumn> Returns the table columns.Returns the column definitions of this table as JSON array.abstract String
getId()
Returns the ID of the table.getRows()
Returns the rows of the table.Returns the configuration of a table.Returns the configuration of this table as JSON object.
-
Constructor Details
-
TableModel
public TableModel()
-
-
Method Details
-
getId
Returns the ID of the table. All IDs must be unique on a given web page.- Returns:
- the table ID
-
getColumns
Returns the table columns.- Returns:
- the table columns
-
getColumnsDefinition
Returns the column definitions of this table as JSON array.- Returns:
- the column definitions
- See Also:
-
getRows
Returns the rows of the table.- Returns:
- the rows
-
getTableConfiguration
Returns the configuration of a table. This may be overridden to change the configuration of a table.- Returns:
- the configuration
-
getTableConfigurationDefinition
Returns the configuration of this table as JSON object.- Returns:
- the table configuration JSON
-
DetailedCell