oracle.cabo.ui.data.bind
Class OrBoundValue
java.lang.Object
|
+--oracle.cabo.ui.data.bind.OrBoundValue
- All Implemented Interfaces:
- BoundValue
- public class OrBoundValue
- extends java.lang.Object
- implements BoundValue
BoundValue that returns Boolean.TRUE if either passed
in BoundValues return Boolean.TRUE and returns
Boolean.FALSE otherwise.
Short circuiting is supported, so that if the first BoudnValue
returns Boolean.TRUE, the value of the second
BoundValue will never be requested.
|
Method Summary |
java.lang.Object |
getValue(RenderingContext context)
Called to retrieve a value based on the current rendering
context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrBoundValue
public OrBoundValue(BoundValue value1,
BoundValue value2)
- Creates an OrBoundValue. Null parameters are treated as if their
value returns
Boolean.FALSE.
- Parameters:
value1 - first BoundValue to OR the result ofvalue2 - second BoundValue to Or the result of.
OrBoundValue
public OrBoundValue(BoundValue[] values)
- Creates a OrBoundValue. Null array elements are treated as if their
value returns
Boolean.FALSE.
- Parameters:
values - array of BoundValues to OR the result of
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