Class DateRangeData

java.lang.Object
org.zkoss.stateless.action.data.DateRangeData
All Implemented Interfaces:
Serializable, ActionData

public class DateRangeData extends 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:
  • Method Details

    • getBegin

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

      public 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.