public abstract class AbstractActivatorConfigurator extends Object implements ActivatorConfigurator
Modifier | Constructor and Description |
---|---|
protected |
AbstractActivatorConfigurator(JComponent panel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener l)
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. |
static JTextField |
createDisplayField()
Utility method to add an uneditable JTextField for displaying text.
|
static JLabel |
createDisplayLabel()
Utility method to add a JLabel for displaying text.
|
protected ActionForwarder |
getActionForwarder()
Returns the action forwarder which should be added as a listener
to any GUI components that can affect the configuration.
|
JComponent |
getPanel()
Returns the panel supplied at construction time.
|
void |
removeActionListener(ActionListener l)
Removes a previously added listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActivator, getConfigMessage, getSafety, getState, setState
protected AbstractActivatorConfigurator(JComponent panel)
panel
- configuration panelpublic JComponent getPanel()
getPanel
in interface ActivatorConfigurator
public void addActionListener(ActionListener l)
ActivatorConfigurator
getActivator
or
getConfigMessage
may change.addActionListener
in interface ActivatorConfigurator
l
- listener to addpublic void removeActionListener(ActionListener l)
ActivatorConfigurator
removeActionListener
in interface ActivatorConfigurator
l
- listener to removeprotected ActionForwarder getActionForwarder()
public static JTextField createDisplayField()
public static JLabel createDisplayLabel()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.