Package ca.corbett.extras.actionpanel
Class ActionPanelOptions
java.lang.Object
ca.corbett.extras.actionpanel.ActionPanelOptions
- Direct Known Subclasses:
BorderOptions,ColorOptions,ExpandCollapseOptions,ToolBarOptions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(OptionsListener listener) You can listen for changes to this options class by adding an OptionsListener.protected voidInvoked internally to let listeners know that something here has changed.voidremoveListener(OptionsListener listener) You can stop listening for changes to this class by removing an OptionsListener that was previously added via addListener().
-
Constructor Details
-
ActionPanelOptions
public ActionPanelOptions()
-
-
Method Details
-
addListener
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
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.
-