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.
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 |
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.
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)
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