Package org.zkoss.stateless.action.data
Class DateRangeData
- java.lang.Object
-
- org.zkoss.stateless.action.data.DateRangeData
-
- All Implemented Interfaces:
java.io.Serializable,ActionData
public class DateRangeData extends java.lang.Object implements ActionData
Represents an action caused by the user changing a date range at the client.Unlike
InputData, a range carries two endpoints, soIDaterangeboxsendsbeginandend(epoch millis, or absent for an empty side) rather than a singlevalue. Used by both theonChangeand theonChangingaction ofIDaterangebox.- Since:
- 11.0.0
- Author:
- peaker
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetBegin()Returns the begin endpoint the user selected, ornullif that side is empty.java.util.DategetEnd()Returns the end endpoint the user selected, ornullif that side is empty.org.zkoss.zul.DateRangegetRange()Returns both endpoints as aDateRange.
-
-
-
Method Detail
-
getBegin
public java.util.Date getBegin()
Returns the begin endpoint the user selected, ornullif that side is empty.
-
getEnd
public java.util.Date getEnd()
Returns the end endpoint the user selected, ornullif that side is empty.
-
getRange
public org.zkoss.zul.DateRange getRange()
Returns both endpoints as aDateRange. Nevernull; either or both ends may benull.
-
-