@Override public void refresh(int year,int month){
  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 refresh ( int year , int month ) { 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
