Class DatePrinter.EmptyDatePrinter
- java.lang.Object
-
- org.hippoecm.frontend.plugins.standards.datetime.DatePrinter.EmptyDatePrinter
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,DatePrinter
- Direct Known Subclasses:
DateTimePrinter.EmptyDateTimePrinter
- Enclosing interface:
- DatePrinter
public static class DatePrinter.EmptyDatePrinter extends Object implements DatePrinter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hippoecm.frontend.plugins.standards.datetime.DatePrinter
DatePrinter.EmptyDatePrinter, DatePrinter.JavaDatePrinter
-
-
Constructor Summary
Constructors Constructor Description EmptyDatePrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatePrinter
appendDST()
Append an explanatory string to the printed date if it is in Daylight Saving Time.String
print()
Print with default style (medium-short).String
print(String pattern)
Print with specified pattern.String
print(FormatStyle style)
Print with specified FormatStyle.
-
-
-
Method Detail
-
print
public String print()
Description copied from interface:DatePrinter
Print with default style (medium-short).- Specified by:
print
in interfaceDatePrinter
- Returns:
- the date as a string formatted in default style
-
print
public String print(String pattern)
Description copied from interface:DatePrinter
Print with specified pattern. See patterns for all pattern options.- Specified by:
print
in interfaceDatePrinter
- Parameters:
pattern
- the pattern to use, not null- Returns:
- the date as a string based on the pattern
-
print
public String print(FormatStyle style)
Description copied from interface:DatePrinter
Print with specified FormatStyle. Check here for all possible styles.- Specified by:
print
in interfaceDatePrinter
- Parameters:
style
- the formatter style to obtain, not null- Returns:
- the date as a string based on the style
-
appendDST
public DatePrinter appendDST()
Description copied from interface:DatePrinter
Append an explanatory string to the printed date if it is in Daylight Saving Time. Java shifts the time zone +1 if a date is in DST (e.g. CET becomes CEST), so to avoid confusion we add a description after the time zone (e.g. " (DST)" in English).- Specified by:
appendDST
in interfaceDatePrinter
- Returns:
- the DatePrinter instance
-
-