Package org.opencms.workplace.list
Class CmsListMacroFormatter
java.lang.Object
org.opencms.workplace.list.CmsListMacroFormatter
- All Implemented Interfaces:
I_CmsListFormatter
- Direct Known Subclasses:
CmsListDateMacroFormatter
This list formatter uses the
MessageFormat class for macro like formatting.- Since:
- 6.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCmsListMacroFormatter(org.opencms.i18n.CmsMessageContainer mask) Default constructor that sets the mask to use. -
Method Summary
-
Constructor Details
-
CmsListMacroFormatter
Default constructor that sets the mask to use.- Parameters:
mask- pattern forMessageFormat
-
-
Method Details
-
format
Description copied from interface:I_CmsListFormatterReturns a formatted string for the specified data.Take care of
nulldata.- Specified by:
formatin interfaceI_CmsListFormatter- Parameters:
data- the data to formatlocale- the locale for formatting- Returns:
- formatted data
- See Also:
-
getMask
Returns the mask.- Returns:
- the mask
-