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:
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  String getCookieName()
          Override to define the cookie name
 TimeZone getTimeZone()
          Get the selected timezone
 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(String timeZoneId)
           
 void setTimeZone(TimeZone timeZone)
           
 void setTimeZoneId(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 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(String timeZoneId)

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()


Copyright © 2011 Seam Framework. All Rights Reserved.