Class FilterTableColumn<C>

java.lang.Object
javax.swing.table.TableColumn
is.codion.swing.common.ui.component.table.FilterTableColumn<C>
Type Parameters:
C - the column identifier type
All Implemented Interfaces:
Serializable

public final class FilterTableColumn<C> extends TableColumn

A TableColumn with a typed identifier.

FilterTable instantiates columns and provides configuration via FilterTable.Builder.columns(Consumer).

See Also:
  • Method Details

    • getIdentifier

      public C getIdentifier()
      Overrides:
      getIdentifier in class TableColumn
    • setIdentifier

      public void setIdentifier(Object identifier)
      Overrides:
      setIdentifier in class TableColumn
      Parameters:
      identifier - an identifier for this column
      Throws:
      UnsupportedOperationException - changing the identifier is not supported
    • setModelIndex

      public void setModelIndex(int modelIndex)
      Overrides:
      setModelIndex in class TableColumn
      Parameters:
      modelIndex - the new modelIndex
      Throws:
      UnsupportedOperationException - changing the modelIndex is not supported
    • setFixedWidth

      public void setFixedWidth(int fixedWidth)
      Sets both minimum and maximum widths to the given fixed width.
      Parameters:
      fixedWidth - the fixed column width
    • identifier

      public C identifier()
      Returns:
      the column identifier
    • toolTipText

      public Optional<String> toolTipText()
      Returns:
      the tool tip text to display for this column, an empty Optional in case of no tool tip
    • toString

      public String toString()
      Overrides:
      toString in class Object