Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class ToDateBoundValue

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

public class ToDateBoundValue
extends DefaultingBoundValue

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


Constructor Summary
ToDateBoundValue(BoundValue wrapped)
          Creates a ToDateBoundValue.
ToDateBoundValue(BoundValue wrapped, java.util.Date defaultValue)
          Creates a ToDateBoundValue.
 
Method Summary
static java.util.Date convertToDate(java.lang.Object time)
          Converts an Object into a Date if possible, or returns null, if impossible.
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

ToDateBoundValue

public ToDateBoundValue(BoundValue wrapped)
Creates a ToDateBoundValue.
Parameters:
wrapped - the BoundValue to convert into a Date.

ToDateBoundValue

public ToDateBoundValue(BoundValue wrapped,
                        java.util.Date defaultValue)
Creates a ToDateBoundValue.
Parameters:
wrapped - the BoundValue to convert into a Date.
defaultValue - The defualt value to use if no conversion is possible
Method Detail

convertToDate

public static java.util.Date convertToDate(java.lang.Object time)
Converts an Object into a Date if possible, or returns null, if impossible.

getWrappedValue

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

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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