Class TextProductControl

All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener

public class TextProductControl extends StationLocationControl implements HyperlinkListener
Class to display weather text
Version:
$Revision: 1.3 $ $Date: 2006/12/01 20:16:39 $
Author:
IDV Development Team
  • Field Details

  • Constructor Details

    • TextProductControl

      public TextProductControl()
      Default cstr;
  • Method Details

    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent e)
      Handle a hyperlink update
      Specified by:
      hyperlinkUpdate in interface HyperlinkListener
      Overrides:
      hyperlinkUpdate in class DisplayControlImpl
      Parameters:
      e - Hyperlink event.
    • doMakeContents

      protected Container doMakeContents() throws VisADException, RemoteException
      Make the gui
      Overrides:
      doMakeContents in class StationLocationControl
      Returns:
      The gui
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • getStationList

      protected List getStationList()
      Get the station list
      Overrides:
      getStationList in class StationLocationControl
      Returns:
      the list
    • selectedStationsChanged

      protected void selectedStationsChanged(List selectionList) throws VisADException, RemoteException
      Handle a change to the selected stations
      Overrides:
      selectedStationsChanged in class StationLocationControl
      Parameters:
      selectionList - list of stations
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • updateText

      public void updateText()
      Update the text.
    • xxxaddSelectedToList

      protected void xxxaddSelectedToList(List listOfStations)
      Add selected to list
      Parameters:
      listOfStations - list of stations
    • main

      public static void main(String[] args) throws Exception
      Test this out
      Parameters:
      args - text
      Throws:
      Exception - problem running the main
    • setText

      protected void setText(String newText, boolean fromProduct)
      Set the text
      Parameters:
      newText - The new text to set
      fromProduct - Is the text from a product
    • timeChanged

      protected void timeChanged(Real time)
      Handle the time changed
      Overrides:
      timeChanged in class StationModelControl
      Parameters:
      time - the time to set
    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Description copied from class: StationLocationControl
      Called to make this kind of Display Control; also calls code to made the Displayable. This method is called from inside DisplayControlImpl.init(several args). This implementation gets the list of stationTables to be used.
      Overrides:
      init in class StationLocationControl
      Parameters:
      dataChoice - the DataChoice of the moment -
      Returns:
      true if successful
      Throws:
      VisADException - there was a VisAD error
      RemoteException - there was a remote error
    • setDisplayType

      public void setDisplayType(String type)
      Set the text display type
      Parameters:
      type - type (TEXT_TYPE or HTML_TYPE);
    • getDisplayType

      public String getDisplayType()
      Get the text display type
      Returns:
      type (TEXT_TYPE or HTML_TYPE);
    • setProductType

      public void setProductType(ProductType value)
      Set the Product property.
      Parameters:
      value - The new value for Product
    • getProductType

      public ProductType getProductType()
      Get the Product property.
      Returns:
      The Product
    • setSelectedStationIds

      public void setSelectedStationIds(List<String> value)
      Set the SelectedStationId property.
      Parameters:
      value - The new value for SelectedStationId
    • getSelectedStationIds

      public List<String> getSelectedStationIds()
      Get the SelectedStationId property.
      Returns:
      The SelectedStationId
    • setHours

      public void setHours(int value)
      Set the Hours property.
      Parameters:
      value - The new value for Hours
    • getHours

      public int getHours()
      Get the Hours property.
      Returns:
      The Hours
    • setShowGlossary

      public void setShowGlossary(boolean value)
      Set the ShowGlossary property.
      Parameters:
      value - The new value for ShowGlossary
    • getShowGlossary

      public boolean getShowGlossary()
      Get the ShowGlossary property.
      Returns:
      The ShowGlossary