|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OptionsPane
The interface for modules that will appear in the Options dialog box. The
OptionsWindow lets the user select from a list of sections, where
each section displays a different set of controls that let the user modify
the appplication settings. Each application module or plugin can register its
own section by calling
Hub.registerOptionsPane(OptionsPane) and providing an
OptionsPane as an argument. The set of controls for the module or
plugin have to appear in the JPanel that is returned by
the getPane() method.
The protocol for calls to the methods in the interface is as follows:
getTitle() can be made at any time.
getPane() and before the first call to
disposePane() that follows it: all calls to resetOptions()
and commitOptions() should be acknowledged and all calls to
getPane() should return a pointer to the same
JPanel that was returned in the first place.
disposePane() and before the first call to
getPane() that follows it: all calls to disposePane(),
resetOptions() and commitOptions() should be ignored.
JPanel with the options controls
should only exist in between a call to getPane() and the first
disposePane() that follows it; and only during this time should
calls to resetOptions() and commitOptions() be
acknowledged.
OptionsWindow,
Hub.registerOptionsPane(OptionsPane),
getTitle(),
getPane(),
disposePane(),
resetOptions(),
commitOptions()| Method Summary | |
|---|---|
void |
commitOptions()
Commit all settings from the controls in the JPanel. |
void |
disposePane()
Called when it is safe to dispose of the JPanel with
the settings controls. |
javax.swing.JPanel |
getPane()
Returns the JPanel which contains the options
controls for this OptionsPane. |
java.lang.String |
getTitle()
Returns the string which will appear in the list of sections in the Optins dialog box. |
void |
resetOptions()
Reset all settings of the controls in the JPanel. |
| Method Detail |
|---|
java.lang.String getTitle()
OptionsPane with this string.
OptionsWindowjavax.swing.JPanel getPane()
JPanel which contains the options
controls for this OptionsPane. This JPanel
will be displayed in the Options dialog box when the user selects the
section for this options pane.
This method may be called numerous times during one session. Do not
construct a new JPanel for each call unless
disposePane() has been called. If disposePane() has not
been called, simply pass a reference to the same object.
JPanel with the options controls.OptionsWindow,
disposePane()void resetOptions()
JPanel.
This method will usually be invoked when the user chooses to cancel any
choices they have made. The module or plugin must not change behavor.
This method may be called a number between calls to getPane().
You must not dispose of the OptionsPane after a call to this
method.
Ignore if called before a call to getPane().
getPane(),
disposePane(),
OptionsWindowvoid commitOptions()
JPanel.
This method will usually be invoked when the user chooses to accept any
choices thay have made. The module or plugin must change behavior
according to the new settings.
This method may be called a number between calls to getPane().
You must not dispose of the OptionsPane after a call to this
method.
Ignore if called before a call to getPane().
getPane(),
disposePane(),
OptionsWindowvoid disposePane()
JPanel with
the settings controls.
Ignore if called before a call to getPane().
getPane(),
OptionsWindow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||