Class ColorValueEditor

java.lang.Object
docking.theme.gui.ThemeValueEditor<Color>
docking.theme.gui.ColorValueEditor

public class ColorValueEditor extends ThemeValueEditor<Color>
Editor for Theme colors
  • Constructor Details

  • Method Details

    • getRawValue

      protected Color getRawValue(String id)
      Description copied from class: ThemeValueEditor
      Returns the actual value (Color, Font, or Icon)
      Specified by:
      getRawValue in class ThemeValueEditor<Color>
      Parameters:
      id - the theme property id for the value
      Returns:
      the current stored value for the id
    • createNewThemeValue

      protected ThemeValue<Color> createNewThemeValue(String id, Color color)
      Description copied from class: ThemeValueEditor
      Factory method for creating the ThemeValue of the correct type.
      Specified by:
      createNewThemeValue in class ThemeValueEditor<Color>
      Parameters:
      id - the id for theme property
      color - the new value for the underlying type (Color, Font, or Icon)
      Returns:
      the new ThemeValue for the type
    • storeState

      protected void storeState()
      Description copied from class: ThemeValueEditor
      Called when the user has pressed ok. This allows sub-classes to store any state for future dialog invocations.
      Overrides:
      storeState in class ThemeValueEditor<Color>