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
    • setAdqlVersion

      public void setAdqlVersion(AdqlVersion version)
      Sets the version of the ADQL language for which this panel is showing metadata.
      Parameters:
      version - ADQL version
    • setAuthId

      public void setAuthId(String authId)
      Displays authenticated user identifer in this panel.
      Parameters:
      authId - string representing user-readable authentication status
    • replaceTreeComponent

      public void replaceTreeComponent(JComponent content)
      Places a component where the schema metadata JTree normally goes. If the supplied component is null, the tree is put back.
      Parameters:
      content - component to replace tree, or null
    • 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