Package net.sf.colossus.gui
Class ColumnWidthPersistingJTable.ColumnWidthPersistingTableColumnModel
java.lang.Object
javax.swing.table.DefaultTableColumnModel
net.sf.colossus.gui.ColumnWidthPersistingJTable.ColumnWidthPersistingTableColumnModel
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,ListSelectionListener
,TableColumnModel
- Enclosing class:
ColumnWidthPersistingJTable
static class ColumnWidthPersistingJTable.ColumnWidthPersistingTableColumnModel
extends DefaultTableColumnModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
private static String
private final String
private final Options
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(TableColumn aColumn) We override addColumn() to set the preferred widthint
getPreferredWidth
(Options options, String optionName, int dataModelColumnNumber) Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
-
Field Details
-
COLUMN_SEPARATOR
-
FIELD_SEPARATOR
-
optionName
-
options
-
-
Constructor Details
-
ColumnWidthPersistingTableColumnModel
-
-
Method Details
-
addColumn
We override addColumn() to set the preferred width- Specified by:
addColumn
in interfaceTableColumnModel
- Overrides:
addColumn
in classDefaultTableColumnModel
-
getOptionName
-
getOptions
-
getPreferredWidth
-