Class TableSetPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TableSetPanel extends JPanel
Displays the metadata from an array of SchemaMeta objects. These can be acquired from a TableSet XML document as exposed by VOSI and TAP interfaces or from interrogating TAP_SCHEMA tables.
Since:
21 Jan 2011
Author:
Mark Taylor
See Also:
  • Field Details

  • Constructor Details

    • TableSetPanel

      public TableSetPanel(UrlHandler urlHandler)
      Constructor.
      Parameters:
      urlHandler - handles URLs that the user clicks on; may be null
  • Method Details

    • setServiceKit

      public void setServiceKit(TapServiceKit serviceKit)
      Installs an object that knows how to acquire TAP service metadata. If the supplied kit is non-null, calling this method initiates asynchronous reads of metadata, which will be displayed in this panel when it arrives.
      Parameters:
      serviceKit - TAP service metadata access kit
    • getServiceKit

      public TapServiceKit getServiceKit()
      Returns the object currently responsible for acquiring table metadata.
      Returns:
      metadata access kit, may be null
    • getSchemas

      public SchemaMeta[] getSchemas()
      Returns the current table metadata set. May be null if the read is still in progress.
      Returns:
      current schema metadata array, may be null
    • setCapability

      public void setCapability(TapCapability capability)
      Sets the TapCapability information to be displayed in this panel.
      Parameters:
      capability - current capability object, may be null
    • setHasExamples

      public void setHasExamples(boolean hasExamples)
      Sets whether an examples document is known to be available at the examples endpoint.
      Parameters:
      hasExamples - true iff examples are known to exist
    • getSelectedTable

      public TableMeta getSelectedTable()
      Returns the table which is currently selected for metadata display.
      Returns:
      selected table, may be null
    • getSelectedColumns

      public ColumnMeta[] getSelectedColumns()
      Returns an array of the columns which are currently selected in the column metadata display table.
      Returns:
      array of selected columns, may be empty but not null