Class ActionPanelOptions

java.lang.Object
ca.corbett.extras.actionpanel.ActionPanelOptions
Direct Known Subclasses:
BorderOptions, ColorOptions, ExpandCollapseOptions, ToolBarOptions

public abstract class ActionPanelOptions extends Object
An abstract base class for the various Options classes used by ActionPanel. This class provides the listener management functionality that allows ActionPanel to know when to rebuild/rerender itself when options change.
Since:
swing-extras 2.8
Author:
scorbo2
  • Constructor Details

    • ActionPanelOptions

      public ActionPanelOptions()
  • Method Details

    • addListener

      public void addListener(OptionsListener listener)
      You can listen for changes to this options class by adding an OptionsListener. This is used internally by ActionPanel to know when to rebuild/rerender itself.
      Parameters:
      listener - The OptionsListener to add. Cannot be null.
    • removeListener

      public void removeListener(OptionsListener listener)
      You can stop listening for changes to this class by removing an OptionsListener that was previously added via addListener().
      Parameters:
      listener - The OptionsListener to remove. Cannot be null.
    • fireOptionsChanged

      protected void fireOptionsChanged()
      Invoked internally to let listeners know that something here has changed.