Package org.opencms.workplace.list
Class CmsListTimeFormatter
java.lang.Object
org.opencms.workplace.list.CmsListTimeFormatter
- All Implemented Interfaces:
I_CmsListFormatter
Simple formatter for time.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionDefault constructor.CmsListTimeFormatter
(int timeStyle) Customizable constructor. -
Method Summary
-
Constructor Details
-
CmsListTimeFormatter
public CmsListTimeFormatter()Default constructor.Use medium style.
-
CmsListTimeFormatter
Customizable constructor.- Parameters:
timeStyle
- the style for the time part- See Also:
-
-
Method Details
-
format
Description copied from interface:I_CmsListFormatter
Returns a formatted string for the specified data.Take care of
null
data.- Specified by:
format
in interfaceI_CmsListFormatter
- Parameters:
data
- the data to formatlocale
- the locale for formatting- Returns:
- formatted data
- See Also:
-