ActivatorConfigurator
ViewDatalinkActivationType.DatalinkConfigurator
public abstract class UrlColumnConfigurator extends AbstractActivatorConfigurator
Modifier and Type | Class | Description |
---|---|---|
protected static class |
UrlColumnConfigurator.LocationColumnActivator |
Utility class providing a partial Activator implementation
for UrlColumnConfigurators that want a location (file or URL) value.
|
protected static class |
UrlColumnConfigurator.UrlColumnActivator |
Utility class providing a partial Activator implementation
for UrlColumnConfigurators that want an actual URL value.
|
Modifier | Constructor | Description |
---|---|---|
protected |
UrlColumnConfigurator(TopcatModelInfo tinfo,
java.lang.String urlWord,
ColFlag[] urlFlags) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract Activator |
createActivator(uk.ac.starlink.table.ColumnData cdata) |
Creates an activator from a ColumnData giving the URL string.
|
Activator |
getActivator() |
Constructs an activator in accordance with the current state of
this GUI.
|
java.lang.String |
getConfigMessage() |
Returns a short status message for display to the user.
|
protected abstract java.lang.String |
getConfigMessage(uk.ac.starlink.table.ColumnData cdata) |
Returns a config message given that a URL column has been supplied.
|
protected javax.swing.Box |
getQueryPanel() |
Returns the component used for storing user interaction components.
|
TopcatModel |
getTopcatModel() |
Returns the TopcatModel that this configurator is using.
|
protected ConfigState |
getUrlState() |
Returns a partial config state, giving the current configuration
of the selected URL column.
|
protected java.lang.String |
getWindowLabel(uk.ac.starlink.table.ColumnData cdata) |
Returns a label which identifies a particular column in this
configurator's table.
|
protected void |
selectColumnByUCD(java.lang.String ucd) |
If a column exists with the named UCD, select it in the selector.
|
protected void |
selectColumnByUtype(java.lang.String uType) |
If a column exists with the named UType, select it in the selector.
|
void |
setLocationLabel(java.lang.String label) |
Resets the label for the Location field.
|
protected void |
setUrlState(ConfigState state) |
Restores the URL selection from a stored state object.
|
addActionListener, createDisplayField, createDisplayLabel, getActionForwarder, getPanel, removeActionListener
getState, setState
protected UrlColumnConfigurator(TopcatModelInfo tinfo, java.lang.String urlWord, ColFlag[] urlFlags)
tinfo
- topcat model informationurlWord
- descriptive term for what's in the URL
(displayed as part of GUI)urlFlags
- list of flags whose columns are to be selected
as default values for the URL column selector;
earlier entries are preferred over later onesprotected abstract Activator createActivator(uk.ac.starlink.table.ColumnData cdata)
cdata
- URL column data, will not be nullprotected abstract java.lang.String getConfigMessage(uk.ac.starlink.table.ColumnData cdata)
cdata
- URL column data, will not be nullprotected javax.swing.Box getQueryPanel()
public Activator getActivator()
ActivatorConfigurator
This method may be called often, so should be cheap to invoke. The idea is that it will be called immediately before the activator is used, so the returned object may fix, rather than arrange to gather at a later date, information acquired from the GUI.
ActivatorConfigurator.getConfigMessage()
public java.lang.String getConfigMessage()
ActivatorConfigurator
As a rule, exactly one of this method and the
getActivator
should return null.
If there is no activator, this method should return some
reason why the configuration is incorrect or incomplete,
and otherwise it should return null.
public TopcatModel getTopcatModel()
protected ConfigState getUrlState()
protected void setUrlState(ConfigState state)
state
- URL stateprotected void selectColumnByUCD(java.lang.String ucd)
ucd
- UCD to matchprotected void selectColumnByUtype(java.lang.String uType)
uType
- UType to matchprotected java.lang.String getWindowLabel(uk.ac.starlink.table.ColumnData cdata)
cdata
- column datapublic void setLocationLabel(java.lang.String label)
label
- new labelCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.