Class ThemeColorTableModel

All Implemented Interfaces:
ConfigurableColumnTableModel, DynamicColumnTableModel<ColorValue>, RowObjectTableModel<ColorValue>, SelectionStorage<ColorValue>, SortedTableModel, VariableColumnTableModel, Serializable, EventListener, ChangeListener, TableModel

public class ThemeColorTableModel extends GDynamicColumnTableModel<ColorValue,Object>
Table model for theme colors
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • ThemeColorTableModel Link icon

      public ThemeColorTableModel(GThemeValuesCache valuesProvider)
  • Method Details Link icon

    • setShowSystemValues Link icon

      public void setShowSystemValues(boolean show)
    • isShowingSystemValues Link icon

      public boolean isShowingSystemValues()
    • reloadCurrent Link icon

      public void reloadCurrent()
      Reloads the just the current values shown in the table. Called whenever a color changes.
    • reloadAll Link icon

      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.
    • filter Link icon

      protected void filter()
    • getName Link icon

      public String getName()
      Description copied from interface: RowObjectTableModel
      Returns the name of this model
      Returns:
      the name of this model
    • getModelData Link icon

      public List<ColorValue> getModelData()
      Description copied from interface: RowObjectTableModel
      Implementors 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 Arrays class to create a list backed by the array (Arrays.asList(Object...)).

      Returns:
      the model data.
    • createTableColumnDescriptor Link icon

      protected TableColumnDescriptor<ColorValue> createTableColumnDescriptor()
      Specified by:
      createTableColumnDescriptor in class GDynamicColumnTableModel<ColorValue,Object>
    • getDataSource Link icon

      public Object getDataSource()
      Description copied from class: GDynamicColumnTableModel
      Returns the table's context for the data.
      Specified by:
      getDataSource in class GDynamicColumnTableModel<ColorValue,Object>
      Returns:
      the table's context for the data.