@Override public void refresh0(int year,int month){
  if (mode == Constant.MODE_CALENDAR) {
    selectedYear=year;
    selectedMonth=month;
    selectedIndex=-1;
    calendar.set(Calendar.YEAR,selectedYear);
    calendar.set(Calendar.MONTH,selectedMonth - 1);
    calendar.set(Calendar.DAY_OF_MONTH,1);
    initial();
    invalidate();
    if (onRefreshListener != null) {
      onRefreshListener.onRefresh();
    }
  }
}

@ Override public void refresh0 ( int year , int month ) { if ( mode == Constant . MODE_CALENDAR ) { selectedYear = year ; selectedMonth = month ; selectedIndex = - 1 ; calendar . set ( Calendar . YEAR , selectedYear ) ; calendar . set ( Calendar . MONTH , selectedMonth - 1 ) ; calendar . set ( Calendar . DAY_OF_MONTH , 1 ) ; initial ( ) ; invalidate ( ) ; if ( onRefreshListener != null ) { onRefreshListener . onRefresh ( ) ; } } }
used for mode_calendar legal values of month : 1 - 12
