com.sun.rave.web.ui.util
Class VariableResolver.BooleanDataSource
java.lang.Object
com.sun.rave.web.ui.util.VariableResolver.BooleanDataSource
- All Implemented Interfaces:
- VariableResolver.DataSource
- Enclosing class:
- VariableResolver
public static class VariableResolver.BooleanDataSource
- extends java.lang.Object
- implements VariableResolver.DataSource
This VariableResolver.DataSource
converts the given
key
to a Boolean
. This is needed because
JSF does not do this for you. When you call
UIComponent.getAttributes().put(key, value)
,
value
is expected to be the correct type. Often
Boolean
types are needed. This
VariableResolver.DataSource
provides a means to supply a
Boolean
value.
Method Summary |
java.lang.Object |
getValue(javax.faces.context.FacesContext ctx,
LayoutElement desc,
javax.faces.component.UIComponent component,
java.lang.String key)
See class JavaDoc. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableResolver.BooleanDataSource
public VariableResolver.BooleanDataSource()
getValue
public java.lang.Object getValue(javax.faces.context.FacesContext ctx,
LayoutElement desc,
javax.faces.component.UIComponent component,
java.lang.String key)
See class JavaDoc.
- Specified by:
getValue
in interface VariableResolver.DataSource
- Parameters:
ctx
- The FacesContext
desc
- The LayoutElement
component
- The UIComponent
key
- The key used to obtain information from this
DataSource
.
- Returns:
- The value resolved from key.