Class TimeZoneDisplayServiceImpl

java.lang.Object
rma.services.tz.impl.TimeZoneDisplayServiceImpl
All Implemented Interfaces:
TimeZoneDisplayService

public class TimeZoneDisplayServiceImpl extends Object implements TimeZoneDisplayService
  • Constructor Details

    • TimeZoneDisplayServiceImpl

      public TimeZoneDisplayServiceImpl()
  • Method Details

    • addTimeZoneListener

      public void addTimeZoneListener(TimeZoneComponent listener)
      Description copied from interface: TimeZoneDisplayService
      Add a listener for time zone display changes
      Specified by:
      addTimeZoneListener in interface TimeZoneDisplayService
      Parameters:
      listener - - component that listens to display changes
    • addTimeZoneComponentListener

      public void addTimeZoneComponentListener(TimeZoneComponent comp)
    • removeTimeZoneComponentListener

      public void removeTimeZoneComponentListener(TimeZoneComponent comp)
    • addContainer

      public void addContainer(Container container)
      Description copied from interface: TimeZoneDisplayService
      adds a listener that will notify all TimeZoneComponents within the container of updated display time zone events
      Specified by:
      addContainer in interface TimeZoneDisplayService
      Parameters:
      container - - container to add a listener for
    • removeContainer

      public void removeContainer(Container container)
      Description copied from interface: TimeZoneDisplayService
      remove listener for the container. Does not traverse subcomponents to remove listeners.
      Specified by:
      removeContainer in interface TimeZoneDisplayService
      Parameters:
      container - - removes the container from the list of listeners
    • setTimeZone

      public void setTimeZone(TimeZone tz)
      Description copied from interface: TimeZoneDisplayService
      Sets the time zone that this component will use to display date and time. Will send update events to all registered listeners.
      Specified by:
      setTimeZone in interface TimeZoneDisplayService
      Parameters:
      tz - The time zone to use for display purposes
    • getTimeZone

      public TimeZone getTimeZone()
      Description copied from interface: TimeZoneDisplayService
      Gets the Time Zone that this component is using to display a date and time. TimeZone can be null, in particular in UI's that use "As Stored" as a time zone display type
      Specified by:
      getTimeZone in interface TimeZoneDisplayService
      Returns:
      java.util.TimeZone - display time zone
    • updateTimeZone

      public void updateTimeZone(Container c)
      Description copied from interface: TimeZoneDisplayService
      Traverses all components within the Container (recursively) to update the displayed time zone if components implement TimeZoneComponent interface. Uses the current display time zone for the service
      Specified by:
      updateTimeZone in interface TimeZoneDisplayService
      Parameters:
      c - - container to interrogate for TimeZoneComponents
    • updateTimeZone

      public void updateTimeZone(Container c, TimeZone timezone)
      Description copied from interface: TimeZoneDisplayService
      Traverses all components within the Container (recursively) to update the displayed time zone if components implement TimeZoneComponent interface
      Specified by:
      updateTimeZone in interface TimeZoneDisplayService
      Parameters:
      c - - container to interrogate for TimeZoneComponents
      timezone - - new display time zone