Class ServiceParamPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ServiceParamPanel extends JPanel
Panel displaying ServiceDescriptor parameters, and offering the user the option to edit or supply their values.
Since:
6 Feb 2018
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ServiceParamPanel

      public ServiceParamPanel(uk.ac.starlink.votable.datalink.ServiceParam[] params)
      Constructor.
      Parameters:
      params - list of parameters for the GUI
  • Method Details

    • setValueMap

      public void setValueMap(Map<uk.ac.starlink.votable.datalink.ServiceParam,String> valueMap)
      Sets values for the displayed parameters. Only those parameters named in the supplied map will be affected. Null values in the supplied map cause the displayed parameter values to be set null.
      Parameters:
      valueMap - new values for parameters
    • getValueMap

      public Map<uk.ac.starlink.votable.datalink.ServiceParam,String> getValueMap()
      Returns the values for the displayed parameters. The returned map contains only entries with non-blank values.
      Returns:
      map of parameter name/value pairs, for non-blank values only
    • addActionListener

      public void addActionListener(ActionListener l)
      Adds a listener to be notified if the value map may have changed.
      Parameters:
      l - listener to add
    • removeActionListener

      public void removeActionListener(ActionListener l)
      Removes a listener added previously.
      Parameters:
      l - listener to remove