|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.gui.AbstractTableLoadDialog
uk.ac.starlink.vo.RegistryServiceTableLoadDialog
public abstract class RegistryServiceTableLoadDialog
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.
Constructor Summary | |
---|---|
RegistryServiceTableLoadDialog(String name,
String protoName,
String description,
RegistryQueryFactory queryFactory,
boolean showCapabilities)
Constructor. |
Method Summary | |
---|---|
boolean |
acceptResourceIdList(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 Component |
createQueryComponent()
Constructs the query component used by this dialogue. |
RegCapabilityInterface[] |
getCapabilities(RegResource resource)
Returns the capabilities associated with a given resource. |
protected JComponent |
getControlBox()
Returns the component within which service-specific components should be placed. |
RegistryQueryFactory |
getQueryFactory()
Returns the query factory used by this dialogue. |
JMenuItem[] |
getRegistryMenuItems()
Returns a list of menu items for actions associated with this component. |
RegistryPanel |
getRegistryPanel()
Returns the registry panel for this dialogue. |
Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog |
---|
asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isAvailable, 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 |
Methods inherited from interface uk.ac.starlink.table.gui.TableLoadDialog |
---|
createTableLoader |
Constructor Detail |
---|
public RegistryServiceTableLoadDialog(String name, String protoName, String description, RegistryQueryFactory queryFactory, boolean showCapabilities)
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:1Method Detail |
---|
public JMenuItem[] getRegistryMenuItems()
public boolean acceptResourceIdList(String[] ivoids, String msg)
ivoids
- ivo:-type identifier stringsmsg
- text of user-directed message to explain where the
IDs came from
protected Component createQueryComponent()
AbstractTableLoadDialog
createQueryComponent
in class AbstractTableLoadDialog
protected JComponent getControlBox()
createQueryComponent()
.
public RegistryPanel getRegistryPanel()
createQueryComponent()
.
public RegCapabilityInterface[] getCapabilities(RegResource resource)
resource
- registry resource
public RegistryQueryFactory getQueryFactory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |