Package org.opencms.gwt.shared
Class CmsClientDateBean
java.lang.Object
org.opencms.gwt.shared.CmsClientDateBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,Comparable<Object>
public class CmsClientDateBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, Comparable<Object>
A bean containing a date, both as a 'long' value and a user-readable string representation.
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
The actual date value.protected String
The user-readable date string. -
Constructor Summary
ModifierConstructorDescriptionprotected
Empty default constructor.CmsClientDateBean
(long date, String dateText) Creates a new instance. -
Method Summary
-
Field Details
-
m_date
The actual date value. -
m_dateText
The user-readable date string.
-
-
Constructor Details
-
CmsClientDateBean
Creates a new instance.- Parameters:
date
- the date valuedateText
- the user-readable date string
-
CmsClientDateBean
protected CmsClientDateBean()Empty default constructor.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
- See Also:
-
getDate
Returns the date.- Returns:
- the date
-
getDateText
Returns the dateText.- Returns:
- the dateText
-