Package io.github.jonestimd.swing.table
Interface ColumnConfiguration
-
- All Known Implementing Classes:
BeanListColumnConfiguration
public interface ColumnConfigurationAn interface for providing table column configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetIndex(javax.swing.table.TableColumn column)Get the saved index for the table column.default java.lang.ObjectgetPrototypeValue(javax.swing.table.TableColumn column)Get the prototype value to use for calculating the column width.java.lang.IntegergetWidth(javax.swing.table.TableColumn column)Get the saved width for the table column.voidsetIndex(javax.swing.table.TableColumn column, int index)Set the saved index for a table column setting.voidsetWidth(javax.swing.table.TableColumn column, int width)Set the saved width for a table column setting.
-
-
-
Method Detail
-
getWidth
java.lang.Integer getWidth(javax.swing.table.TableColumn column)
Get the saved width for the table column.- Parameters:
column- the table column- Returns:
- the saved width or
nullif no width has been saved
-
getIndex
int getIndex(javax.swing.table.TableColumn column)
Get the saved index for the table column.- Parameters:
column- the table column- Returns:
- the saved index or
-1if no index has been saved
-
setWidth
void setWidth(javax.swing.table.TableColumn column, int width)Set the saved width for a table column setting.- Parameters:
column- the table columnwidth- the width to save
-
setIndex
void setIndex(javax.swing.table.TableColumn column, int index)Set the saved index for a table column setting.- Parameters:
column- the table columnindex- the index to save
-
getPrototypeValue
default java.lang.Object getPrototypeValue(javax.swing.table.TableColumn column)
Get the prototype value to use for calculating the column width.
-
-