Package org.zkoss.zkmax.zul
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
ConstructorsConstructorDescriptionRangeChangeEvent(String name, Daterangebox target, Date begin, Date end) Constructs a range-change event. -
Method Summary
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Constructor Details
-
RangeChangeEvent
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 firingDaterangebox.begin- the new begin date, ornull.end- the new end date, ornull.- Since:
- 11.0.0
-
-
Method Details
-
getBegin
Returns a defensive copy of the new begin date, ornull.- Since:
- 11.0.0
-
getEnd
Returns a defensive copy of the new end date, ornull.- Since:
- 11.0.0
-
getRange
public org.zkoss.zul.DateRange getRange()Returns the new value as aDateRangeof the begin and end dates.- Since:
- 11.0.0
-