Class AbstractActivatorConfigurator

java.lang.Object
uk.ac.starlink.topcat.activate.AbstractActivatorConfigurator
All Implemented Interfaces:
ActivatorConfigurator
Direct Known Subclasses:
ChoiceConfigurator, SkyPosConfigurator, UrlColumnConfigurator

public abstract class AbstractActivatorConfigurator extends Object implements ActivatorConfigurator
Skeleton implementation of ActivatorConfigurator.
Since:
29 Jan 2018
Author:
Mark Taylor
  • Constructor Details

    • AbstractActivatorConfigurator

      protected AbstractActivatorConfigurator(JComponent panel)
      Constructor.
      Parameters:
      panel - configuration panel
  • Method Details

    • getPanel

      public JComponent getPanel()
      Returns the panel supplied at construction time.
      Specified by:
      getPanel in interface ActivatorConfigurator
      Returns:
      configuration panel
    • addActionListener

      public void addActionListener(ActionListener l)
      Description copied from interface: ActivatorConfigurator
      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.
      Specified by:
      addActionListener in interface ActivatorConfigurator
      Parameters:
      l - listener to add
    • removeActionListener

      public void removeActionListener(ActionListener l)
      Description copied from interface: ActivatorConfigurator
      Removes a previously added listener.
      Specified by:
      removeActionListener in interface ActivatorConfigurator
      Parameters:
      l - listener to remove
    • getActionForwarder

      protected ActionForwarder getActionForwarder()
      Returns the action forwarder which should be added as a listener to any GUI components that can affect the configuration.
      Returns:
      forwarder
    • createDisplayField

      public static JTextField 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

      public static JLabel createDisplayLabel()
      Utility method to add a JLabel for displaying text.
      Returns:
      new label