Class Daterangebox.RangeChangeEvent

  • All Implemented Interfaces:
    java.io.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:
    10.4.0
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getBegin()
      Returns a defensive copy of the new begin date, or null.
      java.util.Date getEnd()
      Returns a defensive copy of the new end date, or null.
      org.zkoss.zul.DateRange getRange()
      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 Detail

      • RangeChangeEvent

        public RangeChangeEvent​(java.lang.String name,
                                Daterangebox target,
                                java.util.Date begin,
                                java.util.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:
        10.4.0
    • Method Detail

      • getBegin

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

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

        public org.zkoss.zul.DateRange getRange()
        Returns the new value as a DateRange of the begin and end dates.
        Since:
        10.4.0