public class DateRangePicker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
DateRangePicker.DatePickerResults
DatePickerResults class to encapsulate the results of processing the DatePickers
in the form.
|
Constructor and Description |
---|
DateRangePicker(org.apache.struts.action.DynaActionForm formIn,
javax.servlet.http.HttpServletRequest reqIn,
java.util.Date defaultStartDateIn,
java.util.Date defaultEndOffsetIn,
int yearRangeDirectionIn,
java.lang.String startKeyIn,
java.lang.String endKeyIn)
Construct a new DateRangePicker
|
Modifier and Type | Method and Description |
---|---|
DateRangePicker.DatePickerResults |
processDatePickers(boolean isSubmitted,
boolean justDateRelevant)
Process the date pickers.
|
public DateRangePicker(org.apache.struts.action.DynaActionForm formIn, javax.servlet.http.HttpServletRequest reqIn, java.util.Date defaultStartDateIn, java.util.Date defaultEndOffsetIn, int yearRangeDirectionIn, java.lang.String startKeyIn, java.lang.String endKeyIn)
formIn
- to processreqIn
- to processdefaultStartDateIn
- number of days to offset the start from todaydefaultEndOffsetIn
- number of days to offset the end from todayyearRangeDirectionIn
- If you want the year range selector to show years
in the future or in the past. See DatePicker.YEAR_RANGE_POSATIVE, and
DatePicker.YEAR_RANGE_NEGATIVEstartKeyIn
- the l10n key for the name of the start dateendKeyIn
- the l10n key for the name of the end datepublic DateRangePicker.DatePickerResults processDatePickers(boolean isSubmitted, boolean justDateRelevant)
isSubmitted
- if the form was submitted or notjustDateRelevant
- indicates, whether just date is relevant