|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.data.bind.DefaultingBoundValue
public class DefaultingBoundValue
A BoundValue implementation that wraps another and returns a provided default value in place of null.
Constructor Summary | |
---|---|
DefaultingBoundValue(BoundValue wrapped,
BoundValue defaultBoundValue)
Creates a DefaultingBoundValue. |
|
DefaultingBoundValue(BoundValue wrapped,
java.lang.Object defaultValue)
Creates a DefaultingBoundValue. |
Method Summary | |
---|---|
java.lang.Object |
getValue(UIXRenderingContext context)
Called to retrieve a value based on the current rendering context. |
protected java.lang.Object |
getWrappedValue(UIXRenderingContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultingBoundValue(BoundValue wrapped, java.lang.Object defaultValue)
wrapped
- the BoundValue to try firstdefaultValue
- the value to return if wrapped
returns nullpublic DefaultingBoundValue(BoundValue wrapped, BoundValue defaultBoundValue)
wrapped
- the BoundValue to try firstdefaultBoundValue
- the BoundValue to use if wrapped
returns nullMethod Detail |
---|
public java.lang.Object getValue(UIXRenderingContext context)
BoundValue
getValue
in interface BoundValue
context
- the rendering contextprotected java.lang.Object getWrappedValue(UIXRenderingContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |