oracle.cabo.ui.data.bind
Class DefaultingBoundValue
java.lang.Object
|
+--oracle.cabo.ui.data.bind.DefaultingBoundValue
- All Implemented Interfaces:
- BoundValue
- Direct Known Subclasses:
- DefaultingBoundValue, ToColorBoundValue, ToDateBoundValue
- public class DefaultingBoundValue
- extends java.lang.Object
- implements BoundValue
A BoundValue implementation that wraps another and returns a
provided default value in place of null.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultingBoundValue
public DefaultingBoundValue(BoundValue wrapped,
java.lang.Object defaultValue)
- Creates a DefaultingBoundValue.
- Parameters:
wrapped
- the BoundValue to try firstdefaultValue
- the value to return if wrapped
returns null
DefaultingBoundValue
public DefaultingBoundValue(BoundValue wrapped,
BoundValue defaultBoundValue)
- Creates a DefaultingBoundValue.
- Parameters:
wrapped
- the BoundValue to try firstdefaultBoundValue
- the BoundValue to use if wrapped
returns null
getValue
public java.lang.Object getValue(RenderingContext context)
- Description copied from interface:
BoundValue
- Called to retrieve a value based on the current rendering
context.
- Specified by:
getValue
in interface BoundValue
- Following copied from interface:
oracle.cabo.ui.data.BoundValue
- Parameters:
context
- the rendering context
getWrappedValue
protected java.lang.Object getWrappedValue(RenderingContext context)