|
|||||||||
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
uk.ac.starlink.vo.DalTableLoadDialog
public abstract class DalTableLoadDialog
Table load dialogue abstract superclass for registry-based DAL-like queries.
Constructor Summary | |
---|---|
protected |
DalTableLoadDialog(String name,
String protoName,
String description,
Capability capability,
boolean showCapabilities,
boolean autoQuery)
Constructor. |
Method Summary | |
---|---|
URL |
checkUrl(String url)
Performs syntactic checks on a string which should be a URL, and throws an informative RuntimeException if it is not. |
protected Component |
createQueryComponent()
Constructs the query component used by this dialogue. |
RegCapabilityInterface[] |
getCapabilities(RegResource resource)
Returns the capabilities associated with a given resource. |
DescribedValue[] |
getMetadata(RegResource resource,
RegCapabilityInterface cap)
Returns a list of described values for the resource object representing a DAL service. |
DescribedValue[] |
getResourceMetadata(String serviceUrl)
Returns an array of metadata items describing the resource being queried. |
String |
getServiceUrl()
Returns the current contents of the service URL field. |
JTextField |
getServiceUrlField()
Returns the text field into which the user can enter the service URL. |
boolean |
isReady()
Indicates whether the submit action should be enabled. |
void |
setServiceUrl(String url)
Sets the current contents of the service URL field. |
Methods inherited from class uk.ac.starlink.vo.RegistryServiceTableLoadDialog |
---|
acceptResourceIdList, getControlBox, getQueryFactory, getRegistryMenuItems, getRegistryPanel |
Methods inherited from class uk.ac.starlink.table.gui.AbstractTableLoadDialog |
---|
asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isAvailable, isComponentShowing, 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 |
---|
protected DalTableLoadDialog(String name, String protoName, String description, Capability capability, boolean showCapabilities, boolean autoQuery)
name
- dialogue nameprotoName
- short name (perhaps acronym) for protocoldescription
- dialogue descriptioncapability
- service capability typeshowCapabilities
- true to display the capabilities JTable as
well as the Resource one; sensible if resource:capabilities
relationship may not be 1:1autoQuery
- populate service table with full registry query
on initial displayMethod Detail |
---|
protected Component createQueryComponent()
AbstractTableLoadDialog
createQueryComponent
in class RegistryServiceTableLoadDialog
public boolean isReady()
AbstractTableLoadDialog
The default implementation returns true.
isReady
in class AbstractTableLoadDialog
public String getServiceUrl()
public void setServiceUrl(String url)
url
- value to insert into service URL fieldpublic JTextField getServiceUrlField()
public URL checkUrl(String url)
url
- string to test for URL-ness
public DescribedValue[] getResourceMetadata(String serviceUrl)
serviceUrl
- service URL of query
- may or may not be that of the currently selected
resource/capability
public DescribedValue[] getMetadata(RegResource resource, RegCapabilityInterface cap)
resource
- DAL resourcecap
- DAL capability interfacepublic RegCapabilityInterface[] getCapabilities(RegResource resource)
RegistryServiceTableLoadDialog
getCapabilities
in class RegistryServiceTableLoadDialog
resource
- registry resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |