Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableModelCollection.GuiSwingTableModelColumns
java.lang.Object
org.autogui.swing.table.ObjectTableModelColumns
org.autogui.swing.table.GuiSwingTableModelCollection.GuiSwingTableModelColumns
- All Implemented Interfaces:
EventListener
,TableColumnModelListener
,GuiSwingView.SettingsWindowClient
,GuiSwingPrefsSupports.PreferencesUpdateSupport
,GuiSwingTableColumnSet.TableColumnHost
- Enclosing class:
GuiSwingTableModelCollection
public static class GuiSwingTableModelCollection.GuiSwingTableModelColumns
extends ObjectTableModelColumns
implements GuiSwingPrefsSupports.PreferencesUpdateSupport, GuiSwingView.SettingsWindowClient
a subclass of
ObjectTableModelColumns
with supporting settings and preferences-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.swing.table.ObjectTableModelColumns
ObjectTableModelColumns.DynamicColumnContainer, ObjectTableModelColumns.DynamicColumnFactory, ObjectTableModelColumns.DynamicColumnFactoryRoot, ObjectTableModelColumns.ObjectTableColumnSize, ObjectTableModelColumns.ObjectTableColumnSizeComposite, ObjectTableModelColumns.ObjectTableModelColumnsListener, ObjectTableModelColumns.TableRowSorterDynamic
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GuiPreferences
protected SettingsWindow
protected GuiSwingTableModelCollection
Fields inherited from class org.autogui.swing.table.ObjectTableModelColumns
columnModel, columns, dynamicColumns, menuRowComposites, modelToView, staticColumns, updater, viewUpdating
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a row index column as a static column: always delegate to the topvoid
applyPrefsTo
(GuiSwingTableColumn.ObjectTableColumnWithContext column, ObjectTableModelColumns.DynamicColumnContainer d) void
void
applyPrefsToNonContext
(ObjectTableColumn column, GuiSwingPrefsApplyOptions options) protected void
void
void
columnWidthUpdated
(ObjectTableColumn column, int width) void
loadPrefsTo
(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column) void
loadPrefsTo
(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column, GuiSwingPrefsApplyOptions options) void
void
loadSwingPreferences
(GuiPreferences prefs, GuiSwingPrefsApplyOptions options) void
void
void
setSettingsWindow
(SettingsWindow settingsWindow) at initialization of the root-pane, the method will be called for existing sub-panes.Methods inherited from class org.autogui.swing.table.ObjectTableModelColumns
addColumnDynamic, addColumnDynamic, addColumnStatic, addMenuRowComposite, columnAdded, columnMarginChanged, columnRemoved, columnSelectionChanged, convertColumnModelToView, getColumnAt, getColumnCount, getColumnModel, getColumns, getColumnSizeForUpdate, getDynamicColumns, getDynamicColumnsActions, getMenuRowComposites, getRootContainer, getRowHeight, getStaticColumns, getTotalWidth, isNonEmpty, isStaticColumns, moveColumn, removeColumnsDynamic, shutdown, update
-
Field Details
-
settingsWindow
-
prefsUpdater
-
currentPreferences
-
tableModel
-
nonContextOrder
-
nonContextWidth
-
pendingOrders
-
-
Constructor Details
-
GuiSwingTableModelColumns
-
-
Method Details
-
columnMoved
- Specified by:
columnMoved
in interfaceTableColumnModelListener
- Overrides:
columnMoved
in classObjectTableModelColumns
-
getPrefsContextForColumn
-
columnAdded
protected void columnAdded(ObjectTableColumn column, ObjectTableModelColumns.DynamicColumnContainer d) - Overrides:
columnAdded
in classObjectTableModelColumns
-
columnWidthUpdated
-
applyPrefsTo
public void applyPrefsTo(GuiSwingTableColumn.ObjectTableColumnWithContext column, ObjectTableModelColumns.DynamicColumnContainer d) -
applyPrefsToNonContext
-
applyPrefsToNonContext
- Parameters:
column
- the target columnoptions
- processor- Since:
- 1.7
-
loadPrefsTo
public void loadPrefsTo(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column) -
loadPrefsTo
public void loadPrefsTo(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column, GuiSwingPrefsApplyOptions options) - Parameters:
parentPrefs
- parent prefs for the columncolumn
- the target columnoptions
- the processor- Since:
- 1.7
-
setSettingsWindow
Description copied from interface:GuiSwingView.SettingsWindowClient
at initialization of the root-pane, the method will be called for existing sub-panes. a dynamically created view needs to be manually set by those panes.- Specified by:
setSettingsWindow
in interfaceGuiSwingView.SettingsWindowClient
- Parameters:
settingsWindow
- a settings-window from the root-pane, which will be disposed at closing of the main window
-
getSettingsWindow
- Specified by:
getSettingsWindow
in interfaceGuiSwingView.SettingsWindowClient
-
setPreferencesUpdater
- Specified by:
setPreferencesUpdater
in interfaceGuiSwingPrefsSupports.PreferencesUpdateSupport
-
loadSwingPreferences
-
loadSwingPreferences
- Parameters:
prefs
- the preferencesoptions
- the prefs processor- Since:
- 1.7
-
saveSwingPreferences
-
addColumnRowIndex
public void addColumnRowIndex()Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a row index column as a static column: always delegate to the top- Specified by:
addColumnRowIndex
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Overrides:
addColumnRowIndex
in classObjectTableModelColumns
-