站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.0 patch1 API 英文版文档

Selector (JBoss Seam API Documentation) - JBoss Seam 1.2.0 patch1 API 英文版文档


org.jboss.seam.core
Class Selector

java.lang.Object
  extended by org.jboss.seam.core.AbstractMutable
      extended by org.jboss.seam.core.Selector
All Implemented Interfaces:
Serializable, Mutable
Direct Known Subclasses:
Identity, LocaleSelector, ThemeSelector, TimeZoneSelector

public abstract class Selector
extends AbstractMutable
implements Serializable

Support for selector objects which remember their selection as a cookie

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
Selector()
           
 
Method Summary
 int getCookieMaxAge()
          The max age of the cookie
protected abstract  String getCookieName()
          Override to define the cookie name
protected  String getCookieValue()
          Get the value of the cookie
 boolean isCookieEnabled()
          Is the cookie enabled?
 void setCookieEnabled(boolean cookieEnabled)
           
 void setCookieMaxAge(int cookieMaxAge)
           
protected  void setCookieValue(String value)
          Set the cookie
 
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

Selector

public Selector()
Method Detail

isCookieEnabled

public boolean isCookieEnabled()
Is the cookie enabled?

Returns:
false by default

setCookieEnabled

public void setCookieEnabled(boolean cookieEnabled)

getCookieMaxAge

public int getCookieMaxAge()
The max age of the cookie

Returns:
1 year by default

setCookieMaxAge

public void setCookieMaxAge(int cookieMaxAge)

getCookieName

protected abstract String getCookieName()
Override to define the cookie name


getCookieValue

protected String getCookieValue()
Get the value of the cookie


setCookieValue

protected void setCookieValue(String value)
Set the cookie