|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odlabs.wiquery.ui.datepicker.DatePickerYearRange
public class DatePickerYearRange
$Id: DatePickerYearRange.java
Bean for the yearRange option for the DatePicker component
Nested Class Summary | |
---|---|
static class |
DatePickerYearRange.DatePickerYearRangeControl
Control for the DatePickerYearRange |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public CharSequence getJavascriptOption()
IComplexOption
getJavascriptOption
in interface IComplexOption
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |