/** * Returns the current year of the monthView. Callback for spinner model. * * return the current year of the monthView. */ private int getYear() { Calendar cal = monthView.getCalendar(); return cal.get(Calendar.YEAR); }
/** * Returns the current year of the monthView. Callback for spinner model. * * return the current year of the monthView. */ private int getYear() { Calendar cal = monthView.getCalendar(); return cal.get(Calendar.YEAR); }
/** * Returns the current year of the monthView. Callback for spinner model. * * return the current year of the monthView. */ private int getYear() { Calendar cal = monthView.getCalendar(); return cal.get(Calendar.YEAR); }
/** * Returns the current year of the monthView. Callback for spinner model. * * return the current year of the monthView. */ private int getYear() { Calendar cal = monthView.getCalendar(); return cal.get(Calendar.YEAR); }
/** * Returns the current year of the monthView. Callback for spinner model. * * return the current year of the monthView. */ private int getYear() { Calendar cal = monthView.getCalendar(); return cal.get(Calendar.YEAR); }
/** * Returns the previous year of the monthView. Callback for spinner model. * <p> * * PENDING JW: check against lower bound. * * return the previous year of the monthView. */ private int getPreviousYear() { Calendar cal = monthView.getCalendar(); cal.add(Calendar.YEAR, -1); return cal.get(Calendar.YEAR); }
/** * Returns the next year of the monthView. Callback for spinner model. * <p> * * PENDING JW: check against upper bound. * * return the next year of the monthView. */ private int getNextYear() { Calendar cal = monthView.getCalendar(); cal.add(Calendar.YEAR, 1); return cal.get(Calendar.YEAR); }
/** * Returns the previous year of the monthView. Callback for spinner model. * <p> * * PENDING JW: check against lower bound. * * return the previous year of the monthView. */ private int getPreviousYear() { Calendar cal = monthView.getCalendar(); cal.add(Calendar.YEAR, -1); return cal.get(Calendar.YEAR); }
/** * Returns the previous year of the monthView. Callback for spinner model. * <p> * * PENDING JW: check against lower bound. * * return the previous year of the monthView. */ private int getPreviousYear() { Calendar cal = monthView.getCalendar(); cal.add(Calendar.YEAR, -1); return cal.get(Calendar.YEAR); }
/** * Returns the next year of the monthView. Callback for spinner model. * <p> * * PENDING JW: check against upper bound. * * return the next year of the monthView. */ private int getNextYear() { Calendar cal = monthView.getCalendar(); cal.add(Calendar.YEAR, 1); return cal.get(Calendar.YEAR); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
TodayAction() { super(getLinkFormat().format(new Object[]{getLinkDay()})); Calendar cal = _monthView.getCalendar(); cal.setTime(getLinkDay()); putValue(NAME, getLinkFormat().format(new Object[] {cal.getTime()})); }
protected void updateFromTarget() { // this happens on construction with null target if (tsv == null) return; Calendar calendar = getTarget() != null ? getTarget().getCalendar() : null; setName(tsv.getString(calendar)); }
protected void updateFromTarget() { // this happens on construction with null target if (tsv == null) return; Calendar calendar = getTarget() != null ? getTarget().getCalendar() : null; setName(tsv.getString(calendar)); }
protected void updateFromTarget() { // this happens on construction with null target if (tsv == null) return; Calendar calendar = getTarget() != null ? getTarget().getCalendar() : null; setName(tsv.getString(calendar)); }
protected void updateFromTarget() { // this happens on construction with null target if (tsv == null) return; Calendar calendar = getTarget() != null ? getTarget().getCalendar() : null; setName(tsv.getString(calendar)); }
protected void updateFromTarget() { // this happens on construction with null target if (tsv == null) return; Calendar calendar = getTarget() != null ? getTarget().getCalendar() : null; setName(tsv.getString(calendar)); }