Class TapExampleLine

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TapExampleLine extends JPanel
Displays information about a current displayed ADQL example.
Since:
10 Jun 2015
Author:
Mark Taylor
See Also:
  • Constructor Details

    • TapExampleLine

      public TapExampleLine(Consumer<URL> urlHandler)
      Constructor.
      Parameters:
      urlHandler - handles URL clicks
  • Method Details

    • setExample

      public void setExample(AdqlExample example, String groupName)
      Sets the example to be displayed in this line.
      Parameters:
      example - example
      groupName - subtitle for example, or null
    • getExample

      public AdqlExample getExample()
      Returns the currently displayed example.
      Returns:
      example, may be null