Package uk.ac.starlink.vo
Class RegistryServiceTableLoadDialog
java.lang.Object
uk.ac.starlink.table.gui.AbstractTableLoadDialog
uk.ac.starlink.vo.RegistryServiceTableLoadDialog
- All Implemented Interfaces:
uk.ac.starlink.table.gui.TableLoadDialog
- Direct Known Subclasses:
DalTableLoadDialog
public abstract class RegistryServiceTableLoadDialog
extends uk.ac.starlink.table.gui.AbstractTableLoadDialog
Partial implementation of a table load dialogue which has two parts:
first a query on the registry to locate a set of suitable services,
and then a query to one of the services selected from that list.
Concrete subclasses should populate the control box
getControlBox() with service-specific controls and implement
the abstract
TableLoadDialog.createTableLoader()
method appropriately.- Since:
- 6 Jan 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryServiceTableLoadDialog(String name, String protoName, String description, RegistryQueryFactory queryFactory, boolean showCapabilities) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptResourceIdList(String[] ivoids, String msg) Takes a list of resource ID values and may load them or a subset into this object's dialogue as appropriate.protected ComponentgetCapabilities(RegResource resource) Returns the capabilities associated with a given resource.protected JComponentReturns the component within which service-specific components should be placed.Returns the query factory used by this dialogue.Returns a list of menu items for actions associated with this component.Returns the registry panel for this dialogue.Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog
addToolbarAction, asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isAvailable, isComponentShowing, isReady, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReadyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.starlink.table.gui.TableLoadDialog
createTableLoader
-
Constructor Details
-
RegistryServiceTableLoadDialog
public RegistryServiceTableLoadDialog(String name, String protoName, String description, RegistryQueryFactory queryFactory, boolean showCapabilities) Constructor.- Parameters:
name- dialogue nameprotoName- short name (perhaps acronym) for protocoldescription- dialogue descriptionqueryFactory- source of registry query definitionshowCapabilities- true to display the capabilities JTable as well as the Resource one; sensible if resource:capabilities relationship may not be 1:1
-
-
Method Details
-
getRegistryMenuItems
Returns a list of menu items for actions associated with this component.- Returns:
- registry menu item list
-
acceptResourceIdList
Takes a list of resource ID values and may load them or a subset into this object's dialogue as appropriate.- Parameters:
ivoids- ivo:-type identifier stringsmsg- text of user-directed message to explain where the IDs came from- Returns:
- true iff at least some of the resources were, or may be, loaded into this window
-
createQueryComponent
- Specified by:
createQueryComponentin classuk.ac.starlink.table.gui.AbstractTableLoadDialog
-
getControlBox
Returns the component within which service-specific components should be placed. Will return null if called beforecreateQueryComponent().- Returns:
- control box
-
getRegistryPanel
Returns the registry panel for this dialogue. Will return null if called beforecreateQueryComponent().- Returns:
- registry panel
-
getCapabilities
Returns the capabilities associated with a given resource. This determines those capabilities which will be displayed and selecatable for each resource. The default implementation is to include all capabilities; this may however be overridded in a more selective way by subclasses.- Parameters:
resource- registry resource- Returns:
- relevant capabilities from that resource
-
getQueryFactory
Returns the query factory used by this dialogue.- Returns:
- query factory
-