javax.rad.type
Class AbstractDateType<T extends java.util.Date>
java.lang.Object
javax.rad.type.AbstractType<T>
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. |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
AbstractDateType
public AbstractDateType()
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.