|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.util.ValueTypeEvaluator
public class ValueTypeEvaluator
The ValueTypeEvaluator and the ValueType (@see ValueType) classes are helper classes for UIComponents which accept value bindings that can be either single objects or a collection of objects (for example, an array). Typically, these components have to process input differently depending on the type of the value object.
Usage: create a ValueTypeEvaluator member class in the UIComponent's constructor. Invoke getValueType() to get the type of the component's value bindinding. ValueTypeEvaluator caches the value type after the first invocation, so the component should not cache the value itself.
Constructor Summary | |
---|---|
ValueTypeEvaluator(javax.faces.component.UIComponent component)
Creates a new instance of ValueTypeEvaluator. |
Method Summary | |
---|---|
ValueType |
getValueType()
Determine the type of the valuebinding of this object. |
ValueType |
getValueType(javax.faces.context.FacesContext context)
Determine the type of the valuebinding of this object. |
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueTypeEvaluator(javax.faces.component.UIComponent component)
component
- The UIComponent for which the ValueTypeEvaluator is createdMethod Detail |
---|
public ValueType getValueType()
public ValueType getValueType(javax.faces.context.FacesContext context)
context
- The FacesContext
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |