public abstract class DalTableLoadDialog extends RegistryServiceTableLoadDialog
Modifier | Constructor and Description |
---|---|
protected |
DalTableLoadDialog(String name,
String protoName,
String description,
Capability capability,
boolean showCapabilities,
boolean autoQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
JComponent |
getServiceUrlBox()
Returns the component in which the URL selector is located.
|
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.
|
acceptResourceIdList, getControlBox, getQueryFactory, getRegistryMenuItems, getRegistryPanel
asIOException, configure, createFormatSelector, getDescription, getIcon, getMenus, getName, getQueryComponent, getSelectedFormat, getSubmitAction, getToolbarActions, isAvailable, isComponentShowing, setIcon, setIconUrl, setMenus, setToolbarActions, submit, updateReady
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTableLoader
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 displayprotected 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 JComponent getServiceUrlBox()
public URL checkUrl(String url)
url
- string to test for URL-nesspublic DescribedValue[] getResourceMetadata(String serviceUrl)
serviceUrl
- service URL of query
- may or may not be that of the currently selected
resource/capabilitypublic DescribedValue[] getMetadata(RegResource resource, RegCapabilityInterface cap)
resource
- DAL resourcecap
- DAL capability interfacepublic RegCapabilityInterface[] getCapabilities(RegResource resource)
RegistryServiceTableLoadDialog
getCapabilities
in class RegistryServiceTableLoadDialog
resource
- registry resourceCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.