Class DateTimePrinter.EmptyDateTimePrinter
- java.lang.Object
-
- org.hippoecm.frontend.plugins.standards.datetime.DatePrinter.EmptyDatePrinter
-
- org.hippoecm.frontend.plugins.standards.datetime.DateTimePrinter.EmptyDateTimePrinter
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,DatePrinter
,DateTimePrinter
- Enclosing interface:
- DateTimePrinter
public static class DateTimePrinter.EmptyDateTimePrinter extends DatePrinter.EmptyDatePrinter implements DateTimePrinter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hippoecm.frontend.plugins.standards.datetime.DatePrinter
DatePrinter.EmptyDatePrinter, DatePrinter.JavaDatePrinter
-
Nested classes/interfaces inherited from interface org.hippoecm.frontend.plugins.standards.datetime.DateTimePrinter
DateTimePrinter.EmptyDateTimePrinter, DateTimePrinter.JavaDateTimePrinter
-
-
Constructor Summary
Constructors Constructor Description EmptyDateTimePrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTimePrinter
appendDST()
Append an explanatory string to the printed date if it is in Daylight Saving Time.String
print(FormatStyle dateStyle, FormatStyle timeStyle)
Print with specified FormatStyles.-
Methods inherited from class org.hippoecm.frontend.plugins.standards.datetime.DatePrinter.EmptyDatePrinter
print, print, print
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hippoecm.frontend.plugins.standards.datetime.DatePrinter
print, print, print
-
-
-
-
Method Detail
-
print
public String print(FormatStyle dateStyle, FormatStyle timeStyle)
Description copied from interface:DateTimePrinter
Print with specified FormatStyles. Check here for all possible styles. The dateStyle will be used for the date part, the timeStyle for the time part.- Specified by:
print
in interfaceDateTimePrinter
- Parameters:
dateStyle
- the formatter style to use for the date part, not nulltimeStyle
- the formatter style to use for the time part, not null- Returns:
- the date as a string based the both styles
-
appendDST
public DateTimePrinter 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
- Specified by:
appendDST
in interfaceDateTimePrinter
- Overrides:
appendDST
in classDatePrinter.EmptyDatePrinter
- Returns:
- the DatePrinter instance
- See Also:
DatePrinter.appendDST()
-
-