Class TapServiceFinderPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TapServiceFinderPanel extends JPanel
Displays a GUI for locating TAP services by subject.
Since:
30 Jun 2015
Author:
Mark Taylor
See Also:
  • Field Details

    • TAP_SERVICE_PROPERTY

      public static final String TAP_SERVICE_PROPERTY
      Bound property name for currently selected TapServiceFinder.Service.
      See Also:
  • Constructor Details

    • TapServiceFinderPanel

      public TapServiceFinderPanel()
      Constructor.
  • Method Details

    • getSelectedService

      public TapServiceFinder.Service getSelectedService()
      Returns the TAP service currently selected in this panel's GUI.
      Returns:
      selected service object
      See Also:
    • getIvoid

      public String getIvoid(URL serviceUrl)
      Returns the IVOID corresponding to a given TAP service URL, if known.
      Parameters:
      serviceUrl - service URL for TAP service
      Returns:
      ivoid service registry identifier, or null if not recognised
    • addActionListener

      public void addActionListener(ActionListener l)
      Adds a listener that is notified if a selection is made. This currently corresponds to a double-click on the tree.
      Parameters:
      l - listener to add
    • removeActionListener

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

      public void setServiceFinder(TapServiceFinder finder)
      Sets the object which will locate TAP services. Calling this method initiates an asynchronous search for TAP services.
      Parameters:
      finder - new finder
    • getServiceFinder

      public TapServiceFinder getServiceFinder()
      Returns the object which locates TAP services.
      Returns:
      finder
    • main

      public static void main(String[] args)
      Tests the GUI.