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 GuiPreferencesprotected SettingsWindowprotected GuiSwingTableModelCollectionFields inherited from class org.autogui.swing.table.ObjectTableModelColumns
columnModel, columns, dynamicColumns, menuRowComposites, modelToView, staticColumns, updater, viewUpdating -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a row index column as a static column: always delegate to the topvoidapplyPrefsTo(GuiSwingTableColumn.ObjectTableColumnWithContext column, ObjectTableModelColumns.DynamicColumnContainer d) voidvoidapplyPrefsToNonContext(ObjectTableColumn column, GuiSwingPrefsApplyOptions options) protected voidvoidvoidcolumnWidthUpdated(ObjectTableColumn column, int width) voidloadPrefsTo(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column) voidloadPrefsTo(GuiPreferences parentPrefs, GuiSwingTableColumn.ObjectTableColumnWithContext column, GuiSwingPrefsApplyOptions options) voidvoidloadSwingPreferences(GuiPreferences prefs, GuiSwingPrefsApplyOptions options) voidvoidvoidsetSettingsWindow(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, getColumnOrNull, getColumns, getColumnSizeForUpdate, getDynamicColumns, getDynamicColumnsActions, getMenuRowComposites, getRootContainer, getRowHeight, getStaticColumns, getTotalWidth, isNonEmpty, isStaticColumns, isUnderMultidimentionalList, moveColumn, removeColumnsDynamic, shutdown, update
-
Field Details
-
settingsWindow
-
prefsUpdater
-
currentPreferences
-
tableModel
-
nonContextOrder
-
nonContextWidth
-
pendingOrders
-
-
Constructor Details
-
GuiSwingTableModelColumns
-
-
Method Details
-
columnMoved
- Specified by:
columnMovedin interfaceTableColumnModelListener- Overrides:
columnMovedin classObjectTableModelColumns
-
getPrefsContextForColumn
-
columnAdded
protected void columnAdded(ObjectTableColumn column, ObjectTableModelColumns.DynamicColumnContainer d) - Overrides:
columnAddedin 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.SettingsWindowClientat 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:
setSettingsWindowin interfaceGuiSwingView.SettingsWindowClient- Parameters:
settingsWindow- a settings-window from the root-pane, which will be disposed at closing of the main window
-
getSettingsWindow
- Specified by:
getSettingsWindowin interfaceGuiSwingView.SettingsWindowClient
-
setPreferencesUpdater
- Specified by:
setPreferencesUpdaterin interfaceGuiSwingPrefsSupports.PreferencesUpdateSupport
-
loadSwingPreferences
-
loadSwingPreferences
- Parameters:
prefs- the preferencesoptions- the prefs processor- Since:
- 1.7
-
saveSwingPreferences
-
addColumnRowIndex
public void addColumnRowIndex()Description copied from interface:GuiSwingTableColumnSet.TableColumnHostadd a row index column as a static column: always delegate to the top- Specified by:
addColumnRowIndexin interfaceGuiSwingTableColumnSet.TableColumnHost- Overrides:
addColumnRowIndexin classObjectTableModelColumns
-