UIX 2.2.15

oracle.cabo.ui.data.bind
Class ToColorBoundValue

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

public class ToColorBoundValue
extends DefaultingBoundValue

BoundValue that wraps another BoundValue and returns the result of that BoundValue as a Color, if possible.


Constructor Summary
ToColorBoundValue(BoundValue wrapped)
Creates a new ToColorBoundValue.
ToColorBoundValue(BoundValue wrapped, java.awt.Color defaultValue)
Creates a new ToColorBoundValue.

Method Summary
protected java.lang.Object getWrappedValue(RenderingContext context)

Methods inherited from class oracle.cabo.ui.data.bind.DefaultingBoundValue
getValue

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ToColorBoundValue

public ToColorBoundValue(BoundValue wrapped)
Creates a new ToColorBoundValue.
Parameters:
wrapped - the BoundValue to convert into a Color

ToColorBoundValue

public ToColorBoundValue(BoundValue wrapped,
                         java.awt.Color defaultValue)
Creates a new ToColorBoundValue.
Parameters:
wrapped - the BoundValue to convert into a Color
defaultValue - the defualt value to use if no conversion is possible

Method Detail

getWrappedValue

protected java.lang.Object getWrappedValue(RenderingContext context)
Overrides:
getWrappedValue in class DefaultingBoundValue

UIX 2.2.15