|
||||||||||
| 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
public class 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. |
|
| Method Summary | |
|---|---|
String |
format(Object data,
Locale locale)
Returns a formatted string for the specified data. |
| 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 MessageFormatnever - message (without args) for the 'never' message| Method Detail |
|---|
public String format(Object data,
Locale locale)
I_CmsListFormatter
Take care of null data.
format in interface I_CmsListFormatterformat in class CmsListMacroFormatterdata - the data to formatlocale - the locale for formatting
CmsListMacroFormatter.format(java.lang.Object, java.util.Locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||