/** * Set the calendar to the prev month, and return this. * @return the prev month. */ public int getPrevMonth() { m_calendar.set(Calendar.MONTH, getMonthInteger()-2); return (getMonthInteger()-1); } // getPrevMonth
/** * Set the calendar to the prev month, and return this. * @return the prev month. */ public int getPrevMonth() { m_calendar.set(Calendar.MONTH, getMonthInteger()-2); return (getMonthInteger()-1); } // getPrevMonth
/** * Set the calendar to the next month, and return this. * @return the next month. */ public int getNextMonth() { // set day to first of month m_calendar.set(Calendar.DAY_OF_MONTH,1); // set to next month m_calendar.add(Calendar.MONTH, 1); return getMonthInteger(); } // getNextMonth
/** * Set the calendar to the next month, and return this. * @return the next month. */ public int getNextMonth() { // set day to first of month m_calendar.set(Calendar.DAY_OF_MONTH,1); // set to next month m_calendar.add(Calendar.MONTH, 1); return getMonthInteger(); } // getNextMonth
/** * Set the calendar to the next year */ public void setNextYear() { m_calendar.set(Calendar.YEAR,getYear()+1); setDay(getYear(),getMonthInteger(),1); } // setNextYear
/** * Set the calendar to the next year */ public void setNextYear() { m_calendar.set(Calendar.YEAR,getYear()+1); setDay(getYear(),getMonthInteger(),1); } // setNextYear