当前页面:
在线文档首页 >
JBoss Seam 1.2.1 API 英文版文档
TimeZoneSelector (JBoss Seam API Documentation) - JBoss Seam 1.2.1 API 英文版文档
org.jboss.seam.core
Class TimeZoneSelector
java.lang.Object
org.jboss.seam.core.AbstractMutable
org.jboss.seam.core.Selector
org.jboss.seam.core.TimeZoneSelector
- All Implemented Interfaces:
- Serializable, Mutable
@Scope(value=SESSION)
@Name(value="org.jboss.seam.core.timeZoneSelector")
@Intercept(value=NEVER)
@Install(value=false,
precedence=0)
public class TimeZoneSelector
- extends Selector
Selects the current user's time zone, defaulting
to the server time zone.
- Author:
- Gavin King
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeZoneSelector
public TimeZoneSelector()
initTimeZone
@Create
public void initTimeZone()
getCookieName
protected String getCookieName()
- Description copied from class:
Selector
- Override to define the cookie name
- Specified by:
getCookieName
in class Selector
select
public void select()
- Force the resource bundle to reload, using the current locale,
and raise the org.jboss.seam.timeZoneSelected event
setTimeZone
public void setTimeZone(TimeZone timeZone)
setTimeZoneId
public void setTimeZoneId(String id)
getTimeZoneId
public String getTimeZoneId()
getTimeZone
public TimeZone getTimeZone()
- Get the selected timezone
instance
public static TimeZoneSelector instance()