uk.ac.starlink.vo
Class Ri1RegistryTableLoadDialog

java.lang.Object
  extended by uk.ac.starlink.table.gui.AbstractTableLoadDialog
      extended by uk.ac.starlink.vo.Ri1RegistryTableLoadDialog
All Implemented Interfaces:
TableLoadDialog

public class Ri1RegistryTableLoadDialog
extends AbstractTableLoadDialog

Table load dialogue implementation for performing a simple query on a registry. The user can choose which registry to use, and the text of the query (WHERE clause) to make, and a StarTable is returned which contains all the detail of the resources found.

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:
Registry Interface 1.0

Field Summary
static String[] defaultQueries_
          List of preset queries available by default.
 
Constructor Summary
Ri1RegistryTableLoadDialog()
          Constructor.
 
Method Summary
protected  Component createQueryComponent()
          Constructs the query component used by this dialogue.
 TableLoader createTableLoader()
          Returns a new object which specifies how table loading is to be performed.
 String getDescription()
          Returns a short description of this dialogue.
 String getName()
          Returns the name of this dialogue.
 boolean isAvailable()
          The default implementation returns true.
 
Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog
asIOException, configure, createFormatSelector, getIcon, getMenus, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isComponentShowing, isReady, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultQueries_

public static String[] defaultQueries_
List of preset queries available by default.

Constructor Detail

Ri1RegistryTableLoadDialog

public Ri1RegistryTableLoadDialog()
Constructor.

Method Detail

createQueryComponent

protected Component createQueryComponent()
Description copied from class: AbstractTableLoadDialog
Constructs the query component used by this dialogue. Called only once (lazily).

Specified by:
createQueryComponent in class AbstractTableLoadDialog
Returns:
query component

getName

public String getName()
Description copied from interface: TableLoadDialog
Returns the name of this dialogue. This may be used as the text of a button (Action.NAME).

Specified by:
getName in interface TableLoadDialog
Overrides:
getName in class AbstractTableLoadDialog
Returns:
dialogue name

getDescription

public String getDescription()
Description copied from interface: TableLoadDialog
Returns a short description of this dialogue. This may be used as the tooltip text of a button (Action.SHORT_DESCRIPTION).

Specified by:
getDescription in interface TableLoadDialog
Overrides:
getDescription in class AbstractTableLoadDialog
Returns:
dialogue description

isAvailable

public boolean isAvailable()
Description copied from class: AbstractTableLoadDialog
The default implementation returns true.

Specified by:
isAvailable in interface TableLoadDialog
Overrides:
isAvailable in class AbstractTableLoadDialog
Returns:
true iff this dialogue may be able to do something useful

createTableLoader

public TableLoader createTableLoader()
Description copied from interface: TableLoadDialog
Returns a new object which specifies how table loading is to be performed. The actions performed by the returned object will presumably be determined by the state at call time of this dialogues GUI component.

If the dialogue is not in a suitable state, either return null, or, if you want to provide more detailed information about what's wrong, throw a RuntimeException with an informative message.

Returns:
new table loader object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.