org.jboss.seam.international
Class TimeZoneWrapper
java.lang.Object
java.util.TimeZone
org.jboss.seam.international.TimeZoneWrapper
- All Implemented Interfaces:
- Serializable, Cloneable
public class TimeZoneWrapper
- extends TimeZone
A wrapper around a TimeZone that provides a more convenience interface to
access the time zone information in the UI, in particular in the options of
a select menu.
- Author:
- Dan Allen
- See Also:
- Serialized Form
Methods inherited from class java.util.TimeZone |
getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getID, getOffset, getTimeZone, hasSameRules, setDefault |
TimeZoneWrapper
public TimeZoneWrapper(TimeZone tz)
setID
public void setID(String id)
- Overrides:
setID
in class TimeZone
getId
public String getId()
getLabel
public String getLabel()
getTimeZone
public TimeZone getTimeZone()
getOffset
public int getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
- Specified by:
getOffset
in class TimeZone
setRawOffset
public void setRawOffset(int offset)
- Specified by:
setRawOffset
in class TimeZone
getRawOffset
public int getRawOffset()
- Specified by:
getRawOffset
in class TimeZone
useDaylightTime
public boolean useDaylightTime()
- Specified by:
useDaylightTime
in class TimeZone
inDaylightTime
public boolean inDaylightTime(Date date)
- Specified by:
inDaylightTime
in class TimeZone
clone
public Object clone()
- Overrides:
clone
in class TimeZone
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object