Class GenericDlgPreferences

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, IWindow
Direct Known Subclasses:
DlgPreferences

public class GenericDlgPreferences extends JPanel implements IWindow
Author:
fjp The reason behind this class is to have the opportunity of use a DlgPreferences in a local way. Then, you don't need to be a SingletonView.
See Also:
  • Constructor Details

    • GenericDlgPreferences

      public GenericDlgPreferences()
  • Method Details

    • refreshExtensionPoints

      public void refreshExtensionPoints()
    • storeValues

      public void storeValues()
    • add

      public Component add(Component c)
      It is very common to be confused with this method. But the one you are looking for is addPreferencePage(IPreference)
      Overrides:
      add in class Container
    • add

      public Component add(Component c, int i)
      Overrides:
      add in class Container
    • add

      public void add(Component c, Object o)
      Overrides:
      add in class Container
    • add

      public void add(Component c, Object o, int i)
      Overrides:
      add in class Container
    • getWindowInfo

      public WindowInfo getWindowInfo()
      Description copied from interface: IWindow

      Gets the initial window properties. It must be called just once from the framework. To get the current WindowInfo from this window, use PluginServices.getMDIManager.getWindowInfo(window);

      Specified by:
      getWindowInfo in interface IWindow
      Returns:
      A WindowInfo object, containing the properties that this window should have when created
    • addPreferencePage

      public void addPreferencePage(IPreference page)
      It takes an IPreference page and adds it to the application's preferences dialog. The preference page is added in alphabetical order within the branch where the page is hanging on, and defined by its title.
      Parameters:
      page -
    • setActivePage

      public void setActivePage(IPreference page)
    • getWindowProfile

      public Object getWindowProfile()
      Description copied from interface: IWindow

      Gets the profile for this window

      Specified by:
      getWindowProfile in interface IWindow
      Returns:
      An object with the profile.