Class Daterangebox.RangeChangeEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zkmax.zul.Daterangebox.RangeChangeEvent
All Implemented Interfaces:
Serializable
Enclosing class:
Daterangebox

public static class Daterangebox.RangeChangeEvent extends Event
Event fired when the begin or end value changes (carried by onChange and onChanging).
Since:
11.0.0
See Also:
  • Constructor Details

    • RangeChangeEvent

      public RangeChangeEvent(String name, Daterangebox target, Date begin, Date end)
      Constructs a range-change event. The begin/end dates are defensively copied into both the event fields and the data map, so a listener cannot mutate the source values through this event.
      Parameters:
      name - the event name (e.g. onChange).
      target - the firing Daterangebox.
      begin - the new begin date, or null.
      end - the new end date, or null.
      Since:
      11.0.0
  • Method Details

    • getBegin

      public Date getBegin()
      Returns a defensive copy of the new begin date, or null.
      Since:
      11.0.0
    • getEnd

      public Date getEnd()
      Returns a defensive copy of the new end date, or null.
      Since:
      11.0.0
    • getRange

      public DateRange getRange()
      Returns the new value as a DateRange of the begin and end dates.
      Since:
      11.0.0