AbstractActivatorConfigurator
, SkyPosConfigurator
, UrlColumnConfigurator
, ViewDatalinkActivationType.DatalinkConfigurator
public interface ActivatorConfigurator
Modifier and Type | Method | Description |
---|---|---|
void |
addActionListener(java.awt.event.ActionListener listener) |
Adds a listener that will be informed when the GUI state changes
in such a way that the result of
getActivator or
getConfigMessage may change. |
Activator |
getActivator() |
Constructs an activator in accordance with the current state of
this GUI.
|
java.lang.String |
getConfigMessage() |
Returns a short status message for display to the user.
|
javax.swing.JComponent |
getPanel() |
Returns the GUI component with which the user can interact.
|
ConfigState |
getState() |
Returns an object that contains the current state of this configurator.
|
void |
removeActionListener(java.awt.event.ActionListener listener) |
Removes a previously added listener.
|
void |
setState(ConfigState state) |
Restores the state of this object from a given state object.
|
javax.swing.JComponent getPanel()
Activator getActivator()
This method may be called often, so should be cheap to invoke. The idea is that it will be called immediately before the activator is used, so the returned object may fix, rather than arrange to gather at a later date, information acquired from the GUI.
getConfigMessage()
java.lang.String getConfigMessage()
As a rule, exactly one of this method and the
getActivator
should return null.
If there is no activator, this method should return some
reason why the configuration is incorrect or incomplete,
and otherwise it should return null.
void addActionListener(java.awt.event.ActionListener listener)
getActivator
or
getConfigMessage
may change.listener
- listener to addvoid removeActionListener(java.awt.event.ActionListener listener)
listener
- listener to removeConfigState getState()
void setState(ConfigState state)
state
- stored stateCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.