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:
java.io.Serializable
- Enclosing class:
- Daterangebox
public static class Daterangebox.RangeChangeEvent extends org.zkoss.zk.ui.event.EventEvent fired when the begin or end value changes (carried byonChangeandonChanging).- 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.DategetBegin()Returns a defensive copy of the new begin date, ornull.java.util.DategetEnd()Returns a defensive copy of the new end date, ornull.org.zkoss.zul.DateRangegetRange()Returns the new value as aDateRangeof the begin and end dates.
-
-
-
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 firingDaterangebox.begin- the new begin date, ornull.end- the new end date, ornull.- Since:
- 10.4.0
-
-
Method Detail
-
getBegin
public java.util.Date getBegin()
Returns a defensive copy of the new begin date, ornull.- Since:
- 10.4.0
-
getEnd
public java.util.Date getEnd()
Returns a defensive copy of the new end date, ornull.- Since:
- 10.4.0
-
getRange
public org.zkoss.zul.DateRange getRange()
Returns the new value as aDateRangeof the begin and end dates.- Since:
- 10.4.0
-
-