Class DateRangeData

  • All Implemented Interfaces:
    java.io.Serializable, ActionData

    public class DateRangeData
    extends java.lang.Object
    implements ActionData
    Represents an action caused by the user changing a date range at the client.

    Unlike InputData, a range carries two endpoints, so IDaterangebox sends begin and end (epoch millis, or absent for an empty side) rather than a single value. Used by both the onChange and the onChanging action of IDaterangebox.

    Since:
    11.0.0
    Author:
    peaker
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getBegin()
      Returns the begin endpoint the user selected, or null if that side is empty.
      java.util.Date getEnd()
      Returns the end endpoint the user selected, or null if that side is empty.
      org.zkoss.zul.DateRange getRange()
      Returns both endpoints as a DateRange.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getBegin

        public java.util.Date getBegin()
        Returns the begin endpoint the user selected, or null if that side is empty.
      • getEnd

        public java.util.Date getEnd()
        Returns the end endpoint the user selected, or null if that side is empty.
      • getRange

        public org.zkoss.zul.DateRange getRange()
        Returns both endpoints as a DateRange. Never null; either or both ends may be null.