Class PThemeChooser

All Implemented Interfaces:
PreferencesPage, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PThemeChooser extends JPanel implements PreferencesPage, ItemListener
Version:
%version: 6 % %date_modified: Thu Oct 18 11:57:20 2001 %
Author:
kapono
See Also:
  • Field Details

  • Constructor Details

    • PThemeChooser

      public PThemeChooser()
  • Method Details

    • displayDefaults

      public void displayDefaults()
      Description copied from interface: PreferencesPage
      Called to indicate the implementing UI should read the values out of the global data store and re-apply them to the UI.
      Specified by:
      displayDefaults in interface PreferencesPage
    • storePrefs

      public void storePrefs()
      Used to update the application with the currencly selected theme. By default, the app is not updated as the radio buttons are toggled since this is an expensive operation.
      Specified by:
      storePrefs in interface PreferencesPage
    • getHelpID

      public String getHelpID()
      Description copied from interface: PreferencesPage
      Returns the help ID for this preferences page
      Specified by:
      getHelpID in interface PreferencesPage
      Returns:
      the helpID for this page
    • validatePage

      public boolean validatePage()
      Called before storePrefs() to allow the page an opportunity to validate itself.
      Specified by:
      validatePage in interface PreferencesPage
      Returns:
      true if the page is valid and the properties contained within can be saved.
    • getTheme

      public int getTheme()
      Returns:
      Indication of the selected theme (THEME_STANDARD, THEME_BLUE, THEME_GRAY, THEME_CUSTOM);
    • itemStateChanged

      public void itemStateChanged(ItemEvent ie)
      Specified by:
      itemStateChanged in interface ItemListener