}
Object l_objSource = a_objEvent.getSource();
if (l_objSource == null) {
return;
}
MonthEvent l_me = new MonthEvent();
if (l_objSource == m_btnPrev) {
m_calCurrent.add(Calendar.MONTH, -1);
l_me.setToCloseView(false);
} else if (l_objSource == m_btnNext) {
m_calCurrent.add(Calendar.MONTH, 1);
l_me.setToCloseView(false);
} else if (l_objSource instanceof JButton) {
for (int l_iCounter = 0; l_iCounter < m_btnDate.length; l_iCounter++) {
if (l_objSource == m_btnDate[l_iCounter]) {
int l_iDay = Integer.parseInt(m_btnDate[l_iCounter].getText());
m_calCurrent.set(Calendar.DATE, l_iDay);
l_me.setToCloseView(true);
break;
}
}
} else if (l_objSource instanceof MenuItem) {
for (int l_iCounter = 0; l_iCounter < m_menuMonths.length; l_iCounter++) {
if (l_objSource == m_menuMonths[l_iCounter]) {
int l_iCurrentDay = m_calCurrent.get(Calendar.DATE);
m_calCurrent.set(Calendar.MONTH, l_iCounter);
while (l_iCurrentDay != m_calCurrent.get(Calendar.DATE)) {
l_iCurrentDay--;
m_calCurrent.set(Calendar.MONTH, l_iCounter);
m_calCurrent.set(Calendar.DATE, l_iCurrentDay);
}
l_me.setToCloseView(false);
break;
}
}
}
updateTable(m_calCurrent);
l_me.setCalendar(m_calCurrent);
Enumeration<MonthListener> l_enum = m_vMonthLIstener.elements();
while (l_enum.hasMoreElements()) {
l_enum.nextElement().valueChanged(l_me);
}
}