Klasse TableColumn.ColumnBuilder

java.lang.Object
io.jenkins.plugins.datatables.TableColumn.ColumnBuilder
Umschließende Klasse:
TableColumn

public static class TableColumn.ColumnBuilder extends Object
Builder for TableColumn instances.
  • Konstruktordetails

    • ColumnBuilder

      public ColumnBuilder()
  • Methodendetails

    • withType

      public TableColumn.ColumnBuilder withType(TableColumn.ColumnType columnType)
      Sets the data type of the column.
      Parameter:
      columnType - type of the column
      Gibt zurück:
      this
      Siehe auch:
    • withDataPropertyKey

      public TableColumn.ColumnBuilder withDataPropertyKey(String dataPropertyKey)
      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

      public TableColumn.ColumnBuilder withResponsivePriority(int priority)
      Sets the priority of this column. This priority will be evaluated when the table is created with the responsive option 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 of DEFAULT_PRIORITY will be used.
      Parameter:
      priority - the priority of this column
      Gibt zurück:
      this column
      Siehe auch:
    • withHeaderLabel

      public TableColumn.ColumnBuilder withHeaderLabel(String headerLabel)
      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

      public TableColumn.ColumnBuilder withHeaderClass(TableColumn.ColumnCss headerClass)
      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

      public TableColumn.ColumnBuilder withDetailedCell()
      Enables the rendering of cells that use the DetailedCell format. Such cells can use different properties to sort and display the cell values.
      Gibt zurück:
      this column
    • build

      public TableColumn build()
      Creates a new TableColumn based on the specified builder configuration.
      Gibt zurück:
      the created TableColumn
      Löst aus:
      IllegalArgumentException - if the configuration is invalid