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 org.zkoss.zk.ui.event.Event
Event fired when the begin or end value changes (carried by onChange and onChanging).
Since:
11.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RangeChangeEvent(String name, Daterangebox target, Date begin, Date end)
    Constructs a range-change event.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a defensive copy of the new begin date, or null.
    Returns a defensive copy of the new end date, or null.
    org.zkoss.zul.DateRange
    Returns the new value as a DateRange of the begin and end dates.

    Methods inherited from class org.zkoss.zk.ui.event.Event

    getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 org.zkoss.zul.DateRange getRange()
      Returns the new value as a DateRange of the begin and end dates.
      Since:
      11.0.0