oracle.cabo.ui.data.bind
Class AndBoundValue
java.lang.Object
|
+--oracle.cabo.ui.data.bind.AndBoundValue
- All Implemented Interfaces:
- BoundValue
- public class AndBoundValue
- extends java.lang.Object
- implements BoundValue
BoundValue that returns Boolean.TRUE
if both passed
in BoundValues return Boolean.TRUE
and returns
Boolean.FALSE
otherwise.
Short circuiting is supported, so that if the first BoudnValue
returns Boolean.FALSE
, 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 |
AndBoundValue
public AndBoundValue(BoundValue value1,
BoundValue value2)
- Creates a AndBoundValue. Null parameters are treated as if their
value returns
Boolean.FALSE
.
- Parameters:
value1
- first BoundValue to AND the result ofvalue2
- second BoundValue to AND the result of.
AndBoundValue
public AndBoundValue(BoundValue[] values)
- Creates a AndBoundValue. Null array elements are treated as if their
value returns
Boolean.FALSE
.
- Parameters:
values
- array of BoundValues to AND 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