Class AddeGLMDataChooser

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, IdvConstants

public class AddeGLMDataChooser extends AddePointDataChooser
Selection widget for ADDE point data
Version:
$Revision: 1.2 $ $Date: 2007/07/06 20:40:19 $
Author:
MetApps Development Team
See Also:
  • Field Details

    • descriptorComboBox

      protected JComboBox descriptorComboBox
      _more_
    • descriptorNames

      protected String[] descriptorNames
      _more_
    • LABEL_SELECT

      protected static final String LABEL_SELECT
      _more_
      See Also:
    • descriptorTable

      protected Hashtable descriptorTable
      _more_
  • Constructor Details

    • AddeGLMDataChooser

      public AddeGLMDataChooser(IdvChooserManager mgr, Element root)
      Create a new AddeLightningDataChooser with the preferred list of ADDE servers.
      Parameters:
      mgr - The chooser manager
      root - The chooser.xml node
  • Method Details

    • getDefaultStationModel

      public String getDefaultStationModel()
      Get the default station model for this chooser.
      Overrides:
      getDefaultStationModel in class AddePointDataChooser
      Returns:
      name of default station model
    • getDataName

      public String getDataName()
      This allows derived classes to provide their own name for labeling, etc.
      Overrides:
      getDataName in class AddePointDataChooser
      Returns:
      the dataset name
    • getDefaultDatasets

      protected TwoFacedObject[] getDefaultDatasets()
      Get the default datasets for the chooser. The objects are a descriptive name and the ADDE group/descriptor
      Overrides:
      getDefaultDatasets in class AddePointDataChooser
      Returns:
      default datasets.
    • getRelativeTimeIncrement1

      public float getRelativeTimeIncrement1()
      Get the increment between times for relative time requests
      Returns:
      time increment (hours)
    • getDayTimeSelectString

      protected String getDayTimeSelectString()
      Create the date time selection string for the "select" clause of the ADDE URL.
      Overrides:
      getDayTimeSelectString in class AddePointDataChooser
      Returns:
      the select day and time strings
    • getRelativeTimeId

      protected String getRelativeTimeId()
      Get the identifier for relative time. Subclasses can override.
      Overrides:
      getRelativeTimeId in class AddePointDataChooser
      Returns:
      the identifier
    • getAbsoluteTimeSelectMode

      protected int getAbsoluteTimeSelectMode()
      Get the selection mode for the absolute times panel. Subclasses can override.
      Overrides:
      getAbsoluteTimeSelectMode in class TimesChooser
      Returns:
      the list selection mode
    • getGroup

      protected String getGroup()
      _more_
      Overrides:
      getGroup in class AddePointDataChooser
      Returns:
      _more_
    • getDescriptor1

      protected String getDescriptor1()
      Return the currently selected descriptor form the combobox
      Returns:
      the currently selected descriptor
    • getDescriptor

      protected String getDescriptor()
      Get the selected descriptor.
      Overrides:
      getDescriptor in class AddePointDataChooser
      Returns:
      the currently selected descriptor.
    • getDescriptorFromSelection

      protected String getDescriptorFromSelection(String selection)
      Get the descriptor relating to the selection.
      Parameters:
      selection - String name from the widget
      Returns:
      the descriptor
    • getSelectedDescriptor

      public String getSelectedDescriptor()
      Get the selected descriptor.
      Returns:
      the selected descriptor
    • readTimes

      public void readTimes()
      Set the list of available times.
      Overrides:
      readTimes in class AddePointDataChooser
    • doMakeContents

      protected JComponent doMakeContents()
      Make the contents for this chooser
      Overrides:
      doMakeContents in class AddePointDataChooser
      Returns:
      a panel with the UI
    • getDescriptorLabel

      public String getDescriptorLabel()
      _more_
      Returns:
      _more_
    • descriptorChanged

      protected void descriptorChanged()
      _more_
    • getGoodToGo

      protected boolean getGoodToGo()
      _more_
      Overrides:
      getGoodToGo in class AddeChooser
      Returns:
      All set to load.
    • updateStatus

      protected void updateStatus()
      Update labels, enable widgets, etc.
      Overrides:
      updateStatus in class AddePointDataChooser
    • enableWidgets

      protected void enableWidgets()
      _more_
      Overrides:
      enableWidgets in class AddePointDataChooser
    • canReadTimes

      protected boolean canReadTimes()
      _more_
      Returns:
      _more_
    • haveDescriptorSelected

      protected boolean haveDescriptorSelected()
      _more_
      Returns:
      _more_
    • setDescriptors

      protected void setDescriptors(String[] names)
      _more_
      Parameters:
      names - _more_
    • handleConnect

      public void handleConnect() throws Exception
      _more_
      Overrides:
      handleConnect in class AddeChooser
      Throws:
      Exception - _more_
    • connectToServer

      protected void connectToServer()
      _more_
    • getTimesRequest

      protected String getTimesRequest()
      _more_
      Overrides:
      getTimesRequest in class AddePointDataChooser
      Returns:
      _more_
    • getRequestUrl

      public String getRequestUrl()
      _more_
      Overrides:
      getRequestUrl in class AddePointDataChooser
      Returns:
      _more_
    • getExtraRelativeTimeComponent

      protected JComponent getExtraRelativeTimeComponent()
      _more_
      Overrides:
      getExtraRelativeTimeComponent in class AddePointDataChooser
      Returns:
      _more_
    • getRelTimeIncLabel

      public String getRelTimeIncLabel()
      _more_
      Overrides:
      getRelTimeIncLabel in class AddePointDataChooser
      Returns:
      _more_
    • doLoadInThread

      public void doLoadInThread()
      Description copied from class: AddePointDataChooser
      Load in an ADDE point data set based on the PropertyChangeEvent.
      Overrides:
      doLoadInThread in class AddePointDataChooser
    • getDefaultDisplayType

      protected String getDefaultDisplayType()
      Description copied from class: AddePointDataChooser
      Get the default display type
      Overrides:
      getDefaultDisplayType in class AddePointDataChooser
      Returns:
      the default control for automatic display