Package uk.ac.starlink.topcat.activate
Class ViewDatalinkActivationType
java.lang.Object
uk.ac.starlink.topcat.activate.ViewDatalinkActivationType
- All Implemented Interfaces:
ActivationType
Activation type for viewing a downloaded table as a DataLink file.
- Since:
- 6 Feb 2018
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a component that can be used to configure activators of this type.Description of this activation type.getName()
Name of this activation type.getSuitability
(TopcatModelInfo tinfo) Indicates the applicability of this activation type to a given table.static Outcome
invokeLocation
(String loc, DatalinkPanel dlPanel, Window window) Loads the file/URL at a given location into a given DataLink panel.
-
Constructor Details
-
ViewDatalinkActivationType
public ViewDatalinkActivationType()
-
-
Method Details
-
getName
Description copied from interface:ActivationType
Name of this activation type.- Specified by:
getName
in interfaceActivationType
- Returns:
- type name
-
getDescription
Description copied from interface:ActivationType
Description of this activation type.- Specified by:
getDescription
in interfaceActivationType
- Returns:
- type description
-
createConfigurator
Description copied from interface:ActivationType
Returns a component that can be used to configure activators of this type.- Specified by:
createConfigurator
in interfaceActivationType
- Parameters:
tinfo
- information about topcat model for which the activation will take place- Returns:
- new configurator to produce compatible Activators
-
getSuitability
Description copied from interface:ActivationType
Indicates the applicability of this activation type to a given table.- Specified by:
getSuitability
in interfaceActivationType
- Parameters:
tinfo
- information about topcat model- Returns:
- suitability code
-
invokeLocation
Loads the file/URL at a given location into a given DataLink panel.- Parameters:
loc
- location of Datalink {links}-response filedlPanel
- display component for successfully-loaded datalink filewindow
- window in which dlPanel is hosted; if non-null, it will be set visible on load- Returns:
- outcome
-