Class LinkRowPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LinkRowPanel extends JPanel
Displays information and invocation options corresponding to a single row of a Datalink Links-response table.
Since:
10 Apr 2018
Author:
Mark Taylor
See Also:
  • Constructor Details

    • LinkRowPanel

      public LinkRowPanel(UrlOptions urlopts, boolean hasAutoInvoke)
      Constructor.
      Parameters:
      urlopts - options for URL invocation
      hasAutoInvoke - whether the URL panel should feature an auto-invoke button
  • Method Details

    • setLinksDoc

      public void setLinksDoc(uk.ac.starlink.vo.datalink.LinksDoc linksDoc)
      Sets the document whose rows are being displayed.
      Parameters:
      linksDoc - links response document
    • setRow

      public void setRow(Object[] row)
      Sets the row contents to be displayed. This row must correspond to the currently configured LinksDoc.
      Parameters:
      row - links document row data
    • getRowSummary

      public String getRowSummary()
      Returns a short summary of the link described by the currently configured row.
      Returns:
      row summary text
    • invokeRow

      public Outcome invokeRow()
      Performs an invocation action for the currently-configured row, if appropriate.
      Returns:
      outcome
    • isAutoInvoke

      public boolean isAutoInvoke()
      Indicates whether this panel is currently set up for auto-invoke. If true, then selecting a row in the displayed links document will cause the link to be followed according to current settings without further manual user intervention.
      Returns:
      whether auto-invoke is in effect