Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class DefaultingBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.bind.DefaultingBoundValue
All Implemented Interfaces:
BoundValue
Direct Known Subclasses:
DefaultingBoundValue, 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.


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(RenderingContext context)
          Called to retrieve a value based on the current rendering context.
protected  java.lang.Object getWrappedValue(RenderingContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultingBoundValue

public DefaultingBoundValue(BoundValue wrapped,
                            java.lang.Object defaultValue)
Creates a DefaultingBoundValue.
Parameters:
wrapped - the BoundValue to try first
defaultValue - the value to return if wrapped returns null

DefaultingBoundValue

public DefaultingBoundValue(BoundValue wrapped,
                            BoundValue defaultBoundValue)
Creates a DefaultingBoundValue.
Parameters:
wrapped - the BoundValue to try first
defaultBoundValue - the BoundValue to use if wrapped returns null
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

getWrappedValue

protected java.lang.Object getWrappedValue(RenderingContext context)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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