Home | History | Annotate | Download | only in datepicker

Lines Matching refs:YEAR

19 // This is a fork of the standard Android DatePicker that additionally allows toggling the year
49 /** Magic year that represents "no year" */
52 private static final String YEAR = "year";
72 * @param year The year that was set or {@link DatePickerDialog#NO_YEAR} if the user has
73 * not specified a year
78 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
84 * @param year The initial year of the dialog
90 int year,
93 this(context, callBack, year, monthOfYear, dayOfMonth, false);
99 * @param year The initial year of the dialog or {@link DatePickerDialog#NO_YEAR} if no year
103 * @param yearOptional Whether the year can be toggled by the user
107 int year,
114 callBack, year, monthOfYear, dayOfMonth, yearOptional);
121 * @param year The initial year of the dialog or {@link DatePickerDialog#NO_YEAR} if no year
129 int year,
132 this(context, theme, callBack, year, monthOfYear, dayOfMonth, false);
139 * @param year The initial year of the dialog or {@link DatePickerDialog#NO_YEAR} if no
140 * year has been specified.
143 * @param yearOptional Whether the year can be toggled by the user
148 int year,
155 mInitialYear = year;
199 public void onDateChanged(DatePicker view, int year, int month, int day) {
200 updateTitle(year, month, day);
203 public void updateDate(int year, int monthOfYear, int dayOfMonth) {
204 mInitialYear = year;
207 mDatePicker.updateDate(year, monthOfYear, dayOfMonth);
210 private void updateTitle(int year, int month, int day) {
212 calendar.set(Calendar.YEAR, year);
216 year == NO_YEAR ? mTitleNoYearDateFormat : mTitleDateFormat;
223 state.putInt(YEAR, mDatePicker.getYear());
233 int year = savedInstanceState.getInt(YEAR);
237 mDatePicker.init(year, month, day, yearOptional, this);
238 updateTitle(year, month, day);