org.jboss.seam.international
Class TimeZoneSelector

java.lang.Object
  extended by org.jboss.seam.core.AbstractMutable
      extended by org.jboss.seam.faces.Selector
          extended by org.jboss.seam.international.TimeZoneSelector
All Implemented Interfaces:
java.io.Serializable, Mutable

@Scope(value=SESSION)
@Name(value="org.jboss.seam.international.timeZoneSelector")
@BypassInterceptors
@Install(precedence=0,
         classDependencies="javax.faces.context.FacesContext")
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

Field Summary
 
Fields inherited from class org.jboss.seam.faces.Selector
DEFAULT_MAX_AGE
 
Constructor Summary
TimeZoneSelector()
           
 
Method Summary
protected  java.lang.String getCookieName()
          Override to define the cookie name
 java.util.TimeZone getTimeZone()
          Get the selected timezone
 java.lang.String getTimeZoneId()
           
 void initTimeZone()
           
static TimeZoneSelector instance()
           
 void select()
          Force the resource bundle to reload, using the current locale, and raise the org.jboss.seam.timeZoneSelected event
 void select(javax.faces.event.ValueChangeEvent event)
           
 void selectTimeZone(java.lang.String timeZoneId)
           
 void setTimeZone(java.util.TimeZone timeZone)
           
 void setTimeZoneId(java.lang.String id)
           
 
Methods inherited from class org.jboss.seam.faces.Selector
clearCookieValue, getCookie, getCookieMaxAge, getCookiePath, getCookieValue, getCookieValueIfEnabled, isCookieEnabled, setCookieEnabled, setCookieMaxAge, setCookiePath, setCookieValueIfEnabled
 
Methods inherited from class org.jboss.seam.core.AbstractMutable
clearDirty, setDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeZoneSelector

public TimeZoneSelector()
Method Detail

initTimeZone

@Create
public void initTimeZone()

getCookieName

protected java.lang.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


select

public void select(javax.faces.event.ValueChangeEvent event)

selectTimeZone

public void selectTimeZone(java.lang.String timeZoneId)

setTimeZone

public void setTimeZone(java.util.TimeZone timeZone)

setTimeZoneId

public void setTimeZoneId(java.lang.String id)

getTimeZoneId

public java.lang.String getTimeZoneId()

getTimeZone

public java.util.TimeZone getTimeZone()
Get the selected timezone


instance

public static TimeZoneSelector instance()


Copyright © 2011 Seam Framework. All Rights Reserved.