Class ThemeIconTableModel

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

public class ThemeIconTableModel extends GDynamicColumnTableModel<IconValue,Object>
Table model for theme icons
See Also:
  • Constructor Details

  • 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 an icon 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

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

      public List<IconValue> 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

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

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

      public IconValue getThemeValue(String id)
      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