Class Ri1RegistryQueryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Ri1RegistryQueryPanel extends JPanel
Component which allows the user to select a Registry Interface 1.0-style registry to interrogate and a query string representing the query to be done.

This is not very user-friendly or useful, and hence is somewhat deprecated. A TAP query on a Relational Registry service (RegTAP) is usually a better way to acquire registry information.

Since:
23 Dec 2004
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • Ri1RegistryQueryPanel

      public Ri1RegistryQueryPanel()
      Constructor.
  • Method Details

    • setPresetQueries

      public void setPresetQueries(String[] queries)
      Installs a set of custom queries which the user can choose from. If the combo box is editable (it is by default) so the user can still enter free-form queries.
      Parameters:
      queries - list of query strings
    • getRegistryQuery

      public RegistryQuery getRegistryQuery() throws MalformedURLException
      Returns a RegistryQuery object which can perform the query currently specified by the state of this component. Some checking on whether the fields are filled in sensibly is done; if they are not, an informative MalformedURLException will be thrown.
      Returns:
      query object
      Throws:
      MalformedURLException
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent