Class DateTimePrinter.JavaDateTimePrinter

java.lang.Object
org.hippoecm.frontend.plugins.standards.datetime.DatePrinter.JavaDatePrinter
org.hippoecm.frontend.plugins.standards.datetime.DateTimePrinter.JavaDateTimePrinter
All Implemented Interfaces:
Serializable, org.apache.wicket.util.io.IClusterable, DatePrinter, DateTimePrinter
Enclosing interface:
DateTimePrinter

public static class DateTimePrinter.JavaDateTimePrinter extends DatePrinter.JavaDatePrinter implements DateTimePrinter
See Also:
  • Method Details

    • print

      public String print()
      Description copied from interface: DatePrinter
      Print with default style (medium-short).
      Specified by:
      print in interface DatePrinter
      Overrides:
      print in class DatePrinter.JavaDatePrinter
      Returns:
      the date as a string formatted in default style
    • 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 interface DatePrinter
      Overrides:
      print in class DatePrinter.JavaDatePrinter
      Parameters:
      style - the formatter style to obtain, not null
      Returns:
      the date as a string based on the style
    • 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 interface DateTimePrinter
      Parameters:
      dateStyle - the formatter style to use for the date part, not null
      timeStyle - 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 interface DatePrinter
      Specified by:
      appendDST in interface DateTimePrinter
      Overrides:
      appendDST in class DatePrinter.JavaDatePrinter
      Returns:
      the DatePrinter instance
      See Also: