Package docking.theme.gui
Class ThemeFontTableModel
- All Implemented Interfaces:
ConfigurableColumnTableModel,DynamicColumnTableModel<FontValue>,RowObjectTableModel<FontValue>,SelectionStorage<FontValue>,SortedTableModel,VariableColumnTableModel,Serializable,EventListener,ChangeListener,TableModel
Table model for theme fonts
- See Also:
-
Field Summary
Fields inherited from class docking.widgets.table.GDynamicColumnTableModel
columnSettings, serviceProvider, tableColumnsFields inherited from class docking.widgets.table.AbstractSortedTableModel
hasEverSortedFields inherited from class docking.widgets.table.AbstractGTableModel
isDisposed, WIDTH_UNDEFINEDFields inherited from class javax.swing.table.AbstractTableModel
listenerListFields inherited from interface docking.widgets.table.SortedTableModel
ASCENDING_ORDER, DESCENDING_ORDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TableColumnDescriptor<FontValue> protected voidfilter()Returns the table's context for the data.Implementors should return the current data of the model.getName()Returns the name of this modelgetThemeValue(String id) Returns the original value for the id as defined by the current themebooleanvoidReloads all the current values and all the default values in the table.voidReloads the just the current values shown in the table.voidsetShowSystemValues(boolean show) Methods inherited from class docking.widgets.table.GDynamicColumnTableModel
addTableColumn, addTableColumn, addTableColumns, addTableColumns, createSortComparator, createSortComparatorForColumn, dispose, disposeDynamicColumnData, getColumn, getColumnClass, getColumnCount, getColumnDescription, getColumnDisplayName, getColumnIndex, getColumnIndex, getColumnName, getColumnSettings, getColumnSettingsDefinitions, getColumnValueForRow, getDefaultColumnCount, getHeaderRenderer, getMaxLines, getPreferredColumnWidth, getRenderer, getTableColumnDescriptor, getUniqueIdentifier, isDefaultColumn, isSortable, isVisibleByDefault, loadDiscoveredTableColumns, reloadColumns, removeTableColumn, removeTableColumns, setAllColumnSettings, stateChangedMethods inherited from class docking.widgets.table.AbstractSortedTableModel
addSortListener, cleanupTableSortState, createSortingContext, fireTableChanged, getIndexForRowObject, getIndexForRowObject, getPendingSortState, getPrimarySortColumnIndex, getRowIndex, getRowObject, getTableSortState, getValueAt, initializeSorting, isSorted, isSortPending, notifyModelSorted, reSort, setDefaultTableSortState, setTableSortState, sort, sortCompletedMethods inherited from class docking.widgets.table.AbstractGTableModel
getLastSelectedObjects, getRowCount, isDisposed, refresh, setLastSelectedObjectsMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface docking.widgets.table.RowObjectTableModel
fireTableDataChanged, getRowIndex, getRowObjectMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
ThemeFontTableModel
-
-
Method Details
-
setShowSystemValues
public void setShowSystemValues(boolean show) -
isShowingSystemValues
public boolean isShowingSystemValues() -
filter
protected void filter() -
reloadCurrent
public void reloadCurrent()Reloads the just the current values shown in the table. Called whenever a font changes. -
reloadAll
public void reloadAll()Reloads all the current values and all the default values in the table. Called when the theme changes or the application defaults have been forced to reload. -
getName
Description copied from interface:RowObjectTableModelReturns the name of this model- Returns:
- the name of this model
-
getModelData
Description copied from interface:RowObjectTableModelImplementors should return the current data of the model. For models that support filtering, this will be the filtered version of the data. Furthermore, the data should be the underlying data and not a copy, as this method will potentially sort the given data.For those subclasses using an array, you may use the
Arraysclass to create a list backed by the array (Arrays.asList(Object...)).- Returns:
- the model data.
-
createTableColumnDescriptor
- Specified by:
createTableColumnDescriptorin classGDynamicColumnTableModel<FontValue,Object>
-
getDataSource
Description copied from class:GDynamicColumnTableModelReturns the table's context for the data.- Specified by:
getDataSourcein classGDynamicColumnTableModel<FontValue,Object> - Returns:
- the table's context for the data.
-
getThemeValue
Returns the original value for the id as defined by the current theme- Parameters:
id- the resource id to get a font value for- Returns:
- the original value for the id as defined by the current theme
-