Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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.


Constructor Summary
OrBoundValue(BoundValue[] values)
          Creates a OrBoundValue.
OrBoundValue(BoundValue value1, BoundValue value2)
          Creates an OrBoundValue.
 
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
 

Constructor Detail

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 of
value2 - 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
Method Detail

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

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.