Package rma.services.tz.impl
Class TimeZoneDisplayServiceImpl
java.lang.Object
rma.services.tz.impl.TimeZoneDisplayServiceImpl
- All Implemented Interfaces:
TimeZoneDisplayService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(Container container) adds a listener that will notify all TimeZoneComponents within the container of updated display time zone eventsvoidvoidaddTimeZoneListener(TimeZoneComponent listener) Add a listener for time zone display changesGets the Time Zone that this component is using to display a date and time.voidremoveContainer(Container container) remove listener for the container.voidvoidsetTimeZone(TimeZone tz) Sets the time zone that this component will use to display date and time.voidTraverses all components within the Container (recursively) to update the displayed time zone if components implement TimeZoneComponent interface.voidupdateTimeZone(Container c, TimeZone timezone) Traverses all components within the Container (recursively) to update the displayed time zone if components implement TimeZoneComponent interfaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rma.services.tz.TimeZoneDisplayService
getDisplayTimeZone
-
Constructor Details
-
TimeZoneDisplayServiceImpl
public TimeZoneDisplayServiceImpl()
-
-
Method Details
-
addTimeZoneListener
Description copied from interface:TimeZoneDisplayServiceAdd a listener for time zone display changes- Specified by:
addTimeZoneListenerin interfaceTimeZoneDisplayService- Parameters:
listener- - component that listens to display changes
-
addTimeZoneComponentListener
-
removeTimeZoneComponentListener
-
addContainer
Description copied from interface:TimeZoneDisplayServiceadds a listener that will notify all TimeZoneComponents within the container of updated display time zone events- Specified by:
addContainerin interfaceTimeZoneDisplayService- Parameters:
container- - container to add a listener for
-
removeContainer
Description copied from interface:TimeZoneDisplayServiceremove listener for the container. Does not traverse subcomponents to remove listeners.- Specified by:
removeContainerin interfaceTimeZoneDisplayService- Parameters:
container- - removes the container from the list of listeners
-
setTimeZone
Description copied from interface:TimeZoneDisplayServiceSets the time zone that this component will use to display date and time. Will send update events to all registered listeners.- Specified by:
setTimeZonein interfaceTimeZoneDisplayService- Parameters:
tz- The time zone to use for display purposes
-
getTimeZone
Description copied from interface:TimeZoneDisplayServiceGets 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:
getTimeZonein interfaceTimeZoneDisplayService- Returns:
- java.util.TimeZone - display time zone
-
updateTimeZone
Description copied from interface:TimeZoneDisplayServiceTraverses 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:
updateTimeZonein interfaceTimeZoneDisplayService- Parameters:
c- - container to interrogate for TimeZoneComponents
-
updateTimeZone
Description copied from interface:TimeZoneDisplayServiceTraverses all components within the Container (recursively) to update the displayed time zone if components implement TimeZoneComponent interface- Specified by:
updateTimeZonein interfaceTimeZoneDisplayService- Parameters:
c- - container to interrogate for TimeZoneComponentstimezone- - new display time zone
-