Class UwsJobPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class UwsJobPanel extends JPanel
Panel which displays the details for a single UWS job.
Since:
17 Mar 2011
Author:
Mark Taylor
See Also:
  • Constructor Details

    • UwsJobPanel

      public UwsJobPanel(boolean includeUrl)
      Constructor.
      Parameters:
      includeUrl - true to include the job URL field in the display
  • Method Details

    • getJob

      public UwsJob getJob()
      Returns the job currently displayed. May be null.
      Returns:
      displayed job
    • setJob

      public void setJob(UwsJob job)
      Sets the job to be displayed. May be null.
      Parameters:
      job - job to display
    • setJobInfo

      public void setJobInfo(UwsJobInfo jobInfo)
      Updates the display with a given job info object, which may be null.
      Parameters:
      jobInfo - job information
    • scrollRectToVisible

      public void scrollRectToVisible(Rectangle rect)
      Override to a no-op.

      I don't understand why, but if I don't do this, when the component is in a JScrollPane, every time it's refreshed (setJobInfo) it jerkily scrolls to the bottom of the panel. Possibly something to do with the hated GridBagLayout.

      Overrides:
      scrollRectToVisible in class JComponent