Package hec.gui

Class TimeZonePanel

All Implemented Interfaces:
PanelSelectorCard, ImageObserver, MenuContainer, Serializable, Accessible, Modifiable

public class TimeZonePanel extends AbstractEditorPanel
This class provides a default implementation for selecting time zones. The currently selected time zone is displayed on the globe image. The goal of this class is to provide a time zone selector for any use and not be tied to any particular implementation.
See Also:
  • Field Details

  • Constructor Details

    • TimeZonePanel

      public TimeZonePanel()
  • Method Details

    • getUsTimeZoneIdentifiers

      public static List<String> getUsTimeZoneIdentifiers()
    • getStdTimeZoneIdentifiers

      public List<String> getStdTimeZoneIdentifiers()
    • matchUsTimeZones

      public static TimeZone matchUsTimeZones(TimeZone dssTimeZone)
    • buildDefaultTimeZoneList

      protected void buildDefaultTimeZoneList()
    • timeZoneComboAction

      public void timeZoneComboAction()
    • fillPanel

      public void fillPanel(NamedType dobj)
      Description copied from class: AbstractEditorPanel
      Description of the Method

      Specified by:
      fillPanel in class AbstractEditorPanel
      Parameters:
      dobj - Description of Parameter
    • getTabname

      public String getTabname()
      Description copied from class: AbstractEditorPanel
      Gets the Tabname attribute of the AbstractEditorPanel object

      Specified by:
      getTabname in interface PanelSelectorCard
      Specified by:
      getTabname in class AbstractEditorPanel
      Returns:
      The Tabname value
    • savePanel

      public boolean savePanel(NamedType dobj)
      Specified by:
      savePanel in class AbstractEditorPanel
    • fillPanel

      public void fillPanel()
    • clearPanel

      public void clearPanel()
    • getSelectedTimeZone

      public TimeZone getSelectedTimeZone()
      Returns the currently selected time zone. If there is no selected time zone then null is returned.
    • setSelectedTimeZone

      public void setSelectedTimeZone(TimeZone tz)
    • setSelectedTimeZone

      public void setSelectedTimeZone(TimeZone tz, boolean swapBetweenUSAndIntenational)
    • setInternationalDefault

      public void setInternationalDefault(boolean useInternational)
    • setInternationalOnly

      public void setInternationalOnly()
    • setStandardTimeZonesOnly

      public void setStandardTimeZonesOnly(boolean tf)
    • getHoursOffset

      public int getHoursOffset()
    • main

      public static void main(String[] args)