Package io.github.jonestimd.swing.table
Interface ColumnWidthCalculator
-
- All Known Implementing Classes:
ValueClassColumnWidthCalculator
public interface ColumnWidthCalculatorAn interface for calculating table column widths.- See Also:
ColumnResizeHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisFixedWidth(javax.swing.table.TableColumn column)Indicates whether the column should be resized when the table is resized or other columns are resized.intpreferredWidth(javax.swing.table.TableColumn column)Calculate the preferred width of a column.
-
-
-
Method Detail
-
isFixedWidth
boolean isFixedWidth(javax.swing.table.TableColumn column)
Indicates whether the column should be resized when the table is resized or other columns are resized.- Returns:
- true if the column's min, max and preferred widths should all be initialized to the value returned by
preferredWidth(TableColumn)
-
preferredWidth
int preferredWidth(javax.swing.table.TableColumn column)
Calculate the preferred width of a column.- Parameters:
column- the table column- Returns:
- the preferred width of the column
-
-