Class FrameChooser

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ChooserPanel
edu.wisc.ssec.mcidasv.chooser.FrameChooser
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public abstract class FrameChooser extends ucar.unidata.ui.ChooserPanel
Version:
$Revision$
Author:
Unidata IDV Development Team
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • handleUpdate

      public void handleUpdate() throws Exception
      Handle when the user presses the update button
      Throws:
      Exception - _more_
    • handleUpdateFromThread

      public void handleUpdateFromThread()
      Handle when the user presses the update button
    • doUpdate

      public final void doUpdate()
      Update the selector. Call handleUpdate in a thread
      Overrides:
      doUpdate in class ucar.unidata.ui.ChooserPanel
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Handle the event
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class ucar.unidata.ui.ChooserPanel
      Parameters:
      ae - The event
    • updateStatus

      protected void updateStatus()
      Disable/enable any components that depend on the server. Try to update the status labelwith what we know here.
      Overrides:
      updateStatus in class ucar.unidata.ui.ChooserPanel
    • haveAnyTimes

      protected boolean haveAnyTimes()
      Are there any times in the times list.
      Returns:
      Do we have any times at all.
    • haveASeries

      protected boolean haveASeries()
      Are there more than one times in the times list.
      Returns:
      Do we have a series.
    • getTimesList

      public ucar.unidata.ui.ChooserList getTimesList()
      Create (if needed) and return the list that shows frames.
      Returns:
      The frames list.
    • getTimesListSize

      protected int getTimesListSize()
      Get the size of the times list
      Returns:
      the times list size
    • clearFramesList

      protected void clearFramesList()
      Clear all times in the times list.
    • readFrames

      protected abstract void readFrames()
      Do what needs to be done to read in the times. Subclasses need to implement this.
    • getGoodToGo

      protected boolean getGoodToGo()
      Are we all set to load data.
      Returns:
      All set to load.
    • makeFramesPanel

      protected JPanel makeFramesPanel()
      Create the current frame / frame loop selector
      Returns:
      the image list panel
    • haveFrameSelected

      protected boolean haveFrameSelected()
      Are there any frames selected.
      Returns:
      Any frames selected.
    • getDoFrameLoop

      protected boolean getDoFrameLoop()
      Do we do a frame loop or refresh current frame
      Returns:
      Do we do frame loop
    • setDoFrameLoop

      protected void setDoFrameLoop(boolean yesorno)
      Set whether we do a frame loop or refresh current frame
      Parameters:
      yesorno - true to do frame loop
    • getDoCurrentFrame

      protected boolean getDoCurrentFrame()
      Did the user select current frame?
      Returns:
      Should we load current frame
    • enableWidgets

      protected void enableWidgets()
      Enable or disable the GUI widgets based on what has been selected.