Class ViewDatalinkActivationType

java.lang.Object
uk.ac.starlink.topcat.activate.ViewDatalinkActivationType
All Implemented Interfaces:
ActivationType

public class ViewDatalinkActivationType extends Object implements ActivationType
Activation type for viewing a downloaded table as a DataLink file.
Since:
6 Feb 2018
Author:
Mark Taylor
  • Constructor Details

    • ViewDatalinkActivationType

      public ViewDatalinkActivationType()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ActivationType
      Name of this activation type.
      Specified by:
      getName in interface ActivationType
      Returns:
      type name
    • getDescription

      public String getDescription()
      Description copied from interface: ActivationType
      Description of this activation type.
      Specified by:
      getDescription in interface ActivationType
      Returns:
      type description
    • createConfigurator

      public ActivatorConfigurator createConfigurator(TopcatModelInfo tinfo)
      Description copied from interface: ActivationType
      Returns a component that can be used to configure activators of this type.
      Specified by:
      createConfigurator in interface ActivationType
      Parameters:
      tinfo - information about topcat model for which the activation will take place
      Returns:
      new configurator to produce compatible Activators
    • getSuitability

      public Suitability getSuitability(TopcatModelInfo tinfo)
      Description copied from interface: ActivationType
      Indicates the applicability of this activation type to a given table.
      Specified by:
      getSuitability in interface ActivationType
      Parameters:
      tinfo - information about topcat model
      Returns:
      suitability code
    • invokeLocation

      public static Outcome invokeLocation(String loc, DatalinkPanel dlPanel, Window window)
      Loads the file/URL at a given location into a given DataLink panel.
      Parameters:
      loc - location of Datalink {links}-response file
      dlPanel - display component for successfully-loaded datalink file
      window - window in which dlPanel is hosted; if non-null, it will be set visible on load
      Returns:
      outcome