|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.list.CmsListMacroFormatter
org.opencms.workplace.list.CmsListDateMacroFormatter
Formatter for dates.
The 'never' message will be displayed if the date is null or
.Date.getTime()
==0
Constructor Summary | |
CmsListDateMacroFormatter(CmsMessageContainer mask,
CmsMessageContainer never)
Default constructor that sets the mask to use. |
|
CmsListDateMacroFormatter(CmsMessageContainer mask,
CmsMessageContainer never,
long neverTime)
Default constructor that sets the mask to use. |
Method Summary | |
java.lang.String |
format(java.lang.Object data,
java.util.Locale locale)
Returns a formatted string for the specified data. |
static I_CmsListFormatter |
getDefaultDateFormatter()
Returns a default date formatter object. |
static I_CmsListFormatter |
getDefaultDateFormatter(long never)
Returns a default date formatter object. |
Methods inherited from class org.opencms.workplace.list.CmsListMacroFormatter |
getMask |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CmsListDateMacroFormatter(CmsMessageContainer mask, CmsMessageContainer never)
mask
- pattern for MessageFormat
never
- message (without args) for the 'never' messagepublic CmsListDateMacroFormatter(CmsMessageContainer mask, CmsMessageContainer never, long neverTime)
mask
- pattern for MessageFormat
never
- message (without args) for the 'never' messageneverTime
- the time considered as 'never', default is 0
Method Detail |
public static I_CmsListFormatter getDefaultDateFormatter()
public static I_CmsListFormatter getDefaultDateFormatter(long never)
never
- time considered as never
public java.lang.String format(java.lang.Object data, java.util.Locale locale)
I_CmsListFormatter
Take care of null
data.
format
in interface I_CmsListFormatter
format
in class CmsListMacroFormatter
CmsListMacroFormatter.format(java.lang.Object, java.util.Locale)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |