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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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