Module is.codion.swing.common.ui
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
A TableColumn with a typed identifier.
FilterTable instantiates columns and provides configuration via FilterTable.Builder.columns(Consumer).
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class javax.swing.table.TableColumn
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFixedWidth(int fixedWidth) Sets both minimum and maximum widths to the given fixed width.voidsetIdentifier(Object identifier) voidsetModelIndex(int modelIndex) toString()Methods inherited from class javax.swing.table.TableColumn
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getHeaderValue, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setMaxWidth, setMinWidth, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
-
Method Details
-
getIdentifier
- Overrides:
getIdentifierin classTableColumn
-
setIdentifier
- Overrides:
setIdentifierin classTableColumn- Parameters:
identifier- an identifier for this column- Throws:
UnsupportedOperationException- changing the identifier is not supported
-
setModelIndex
public void setModelIndex(int modelIndex) - Overrides:
setModelIndexin classTableColumn- 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
- Returns:
- the column identifier
-
toolTipText
- Returns:
- the tool tip text to display for this column, an empty Optional in case of no tool tip
-
toString
-