javax.rad.type
Class AbstractDateType<T extends java.util.Date>

java.lang.Object
  extended by javax.rad.type.AbstractType<T>
      extended by javax.rad.type.AbstractDateType<T>
Type Parameters:
T - the Date type.
All Implemented Interfaces:
IType<T>
Direct Known Subclasses:
DateType, TimestampType

public abstract class AbstractDateType<T extends java.util.Date>
extends AbstractType<T>

The AbstractDateType is the base implementation for all numeric types.


Field Summary
protected  DateUtil dateUtil
          The cell renderer.
protected static java.lang.String FORMAT
          The format to convert a String to a Timestamp.
 
Fields inherited from interface javax.rad.type.IType
UNKNOWN_TYPE
 
Constructor Summary
AbstractDateType()
           
 
Method Summary
 int compareTo(T pObject1, java.lang.Object pObject2)
          Compares two objects.
 java.lang.String getDateFormat()
          Returns the current DateFormat.
 void setDateFormat(java.lang.String pDateFormat)
          Sets the current DateFormat.
 
Methods inherited from class javax.rad.type.AbstractType
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, validatedValueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.rad.type.IType
getTypeClass
 

Field Detail

FORMAT

protected static final java.lang.String FORMAT
The format to convert a String to a Timestamp.

See Also:
Constant Field Values

dateUtil

protected DateUtil dateUtil
The cell renderer.

Constructor Detail

AbstractDateType

public AbstractDateType()
Method Detail

compareTo

public int compareTo(T pObject1,
                     java.lang.Object pObject2)
Compares two objects. If the first object is smaller than the second object a value < 0 is returned. If the two objects are equal than 0 is returned. If the first object is greater than the second object a value > 0 is returned.

Parameters:
pObject1 - the first object.
pObject2 - the second object.
Returns:
< 0 if pObject1 is smaller, 0 if equal and > 0 if it is greater then pObject2

getDateFormat

public java.lang.String getDateFormat()
Returns the current DateFormat.

Returns:
the current DateFormat.

setDateFormat

public void setDateFormat(java.lang.String pDateFormat)
Sets the current DateFormat.

Parameters:
pDateFormat - the new DateFormat.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.