Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class FixedBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.bind.FixedBoundValue
All Implemented Interfaces:
BoundValue

public class FixedBoundValue
extends java.lang.Object
implements BoundValue

BoundValue implementation that always returns the value passed into the constructor. This class is typically used in debugging and performance testing and will rarely be used in production code.


Field Summary
static FixedBoundValue FALSE_VALUE
          BoundValue that will always return Boolean.FALSE.
static FixedBoundValue NULL_VALUE
          BoundValue that will always return null.
static FixedBoundValue TRUE_VALUE
          BoundValue that will always return Boolean.TRUE.
 
Constructor Summary
FixedBoundValue(java.lang.Object value)
          Create a BoundValue that always returns the value passed into the constructor.
 
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
 

Field Detail

FALSE_VALUE

public static final FixedBoundValue FALSE_VALUE
BoundValue that will always return Boolean.FALSE.

TRUE_VALUE

public static final FixedBoundValue TRUE_VALUE
BoundValue that will always return Boolean.TRUE.

NULL_VALUE

public static final FixedBoundValue NULL_VALUE
BoundValue that will always return null.
Constructor Detail

FixedBoundValue

public FixedBoundValue(java.lang.Object value)
Create a BoundValue that always returns the value passed into the constructor.

Parameters:
value - The value to return from getValue.
See Also:
getValue(oracle.cabo.ui.RenderingContext)
Method Detail

getValue

public java.lang.Object getValue(RenderingContext context)
Called to retrieve a value based on the current rendering context. FixedBoundValues always return the value passed into the constructor.

Specified by:
getValue in interface 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.