public class DatePickerYearRange extends Object implements IComplexOption
Bean for the yearRange option for the DatePicker component
| Modifier and Type | Class and Description |
|---|---|
static class |
DatePickerYearRange.DatePickerYearRangeControl
Control for the DatePickerYearRange
|
| Constructor and Description |
|---|
DatePickerYearRange(short yearFrom,
short yearTo)
Constructor which sets absolute yearFrom and yearTo, eg: 2000 and 2020.
|
DatePickerYearRange(short yearFrom,
short yearTo,
boolean yearRelativeToToday)
Constructor which mixed raltive and absolute.
|
DatePickerYearRange(short yearFrom,
short yearTo,
DatePickerYearRange.DatePickerYearRangeControl controlFrom,
DatePickerYearRange.DatePickerYearRangeControl controlTo)
Constructor which sets relative yearFrom and yearTo, eh: 2010 and -10.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getJavascriptOption()
Method retrieving the javascript representation of this complex option
|
void |
setAbsoluteRange(short yearFrom,
short yearTo) |
void |
setRange(short yearFrom,
short yearTo,
DatePickerYearRange.DatePickerYearRangeControl controlFrom,
DatePickerYearRange.DatePickerYearRangeControl controlTo) |
void |
setRelativeRange(short yearFrom,
short yearTo,
boolean yearRelativeToToday) |
public DatePickerYearRange(short yearFrom,
short yearTo)
yearFrom - the range's startyearTo - the range's endpublic DatePickerYearRange(short yearFrom,
short yearTo,
DatePickerYearRange.DatePickerYearRangeControl controlFrom,
DatePickerYearRange.DatePickerYearRangeControl controlTo)
yearFrom - the range's startyearTo - the range's endcontrolFrom - Control for the range's startcontrolTo - Control for the range's endpublic DatePickerYearRange(short yearFrom,
short yearTo,
boolean yearRelativeToToday)
yearFrom - the range's startyearTo - the range's endyearRelativeToToday - determines whether to count from today's year or the currently
selected year.public CharSequence getJavascriptOption()
getJavascriptOption in interface IComplexOptionIComplexOption.getJavascriptOption()public void setAbsoluteRange(short yearFrom,
short yearTo)
public void setRelativeRange(short yearFrom,
short yearTo,
boolean yearRelativeToToday)
public void setRange(short yearFrom,
short yearTo,
DatePickerYearRange.DatePickerYearRangeControl controlFrom,
DatePickerYearRange.DatePickerYearRangeControl controlTo)
Copyright © 2009-2012. All Rights Reserved.