Class AbstractActivatorConfigurator
java.lang.Object
uk.ac.starlink.topcat.activate.AbstractActivatorConfigurator
- All Implemented Interfaces:
ActivatorConfigurator
- Direct Known Subclasses:
ChoiceConfigurator, SkyPosConfigurator, UrlColumnConfigurator
Skeleton implementation of ActivatorConfigurator.
- Since:
- 29 Jan 2018
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener that will be informed when the GUI state changes in such a way that the result ofgetActivatororgetConfigMessagemay change.static JTextFieldUtility method to add an uneditable JTextField for displaying text.static JLabelUtility method to add a JLabel for displaying text.protected ActionForwarderReturns the action forwarder which should be added as a listener to any GUI components that can affect the configuration.getPanel()Returns the panel supplied at construction time.voidRemoves a previously added listener.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ActivatorConfigurator
getActivator, getConfigMessage, getSafety, getState, setState
-
Constructor Details
-
AbstractActivatorConfigurator
Constructor.- Parameters:
panel- configuration panel
-
-
Method Details
-
getPanel
Returns the panel supplied at construction time.- Specified by:
getPanelin interfaceActivatorConfigurator- Returns:
- configuration panel
-
addActionListener
Description copied from interface:ActivatorConfiguratorAdds a listener that will be informed when the GUI state changes in such a way that the result ofgetActivatororgetConfigMessagemay change.- Specified by:
addActionListenerin interfaceActivatorConfigurator- Parameters:
l- listener to add
-
removeActionListener
Description copied from interface:ActivatorConfiguratorRemoves a previously added listener.- Specified by:
removeActionListenerin interfaceActivatorConfigurator- Parameters:
l- listener to remove
-
getActionForwarder
Returns the action forwarder which should be added as a listener to any GUI components that can affect the configuration.- Returns:
- forwarder
-
createDisplayField
Utility method to add an uneditable JTextField for displaying text. This is quite like a JLabel, but the text can be cut'n'pasted.- Returns:
- new text field
-
createDisplayLabel
Utility method to add a JLabel for displaying text.- Returns:
- new label
-