public void setFirstDayOfWeek(int startOfWeek) { if (startOfWeek < Calendar.SUNDAY || startOfWeek > Calendar.SATURDAY) { throw new IllegalArgumentException("Value must be between Calendar.SUNDAY and " + "Calendar.SATURDAY"); } mWeekStart = startOfWeek; if (mDayPickerView != null) { mDayPickerView.onChange(); } }
public void setYearRange(int startYear, int endYear) { if (endYear <= startYear) { throw new IllegalArgumentException("Year end must be larger than year start"); } mMinYear = startYear; mMaxYear = endYear; if (mDayPickerView != null) { mDayPickerView.onChange(); } }
/** * Sets the minimal date supported by this DatePicker. Dates after (but not including) the * specified date will be disallowed from being selected. * @param calendar a Calendar object set to the year, month, day desired as the maxdate. */ public void setMaxDate(Calendar calendar) { mMaxDate = calendar; if (mDayPickerView != null) { mDayPickerView.onChange(); } }
/** * Sets the minimal date supported by this DatePicker. Dates before (but not including) the * specified date will be disallowed from being selected. * @param calendar a Calendar object set to the year, month, day desired as the mindate. */ public void setMinDate(Calendar calendar) { mMinDate = calendar; if (mDayPickerView != null) { mDayPickerView.onChange(); } }
public void setFirstDayOfWeek(int startOfWeek) { if (startOfWeek < Calendar.SUNDAY || startOfWeek > Calendar.SATURDAY) { throw new IllegalArgumentException("Value must be between Calendar.SUNDAY and " + "Calendar.SATURDAY"); } mWeekStart = startOfWeek; if (mDayPickerView != null) { mDayPickerView.onChange(); } }
public void setYearRange(int startYear, int endYear) { if (endYear <= startYear) { throw new IllegalArgumentException("Year end must be larger than year start"); } mMinYear = startYear; mMaxYear = endYear; if (mDayPickerView != null) { mDayPickerView.onChange(); } }