monthPicker.setVisible(false);
}
protected void onClick(ComponentEvent be) {
be.preventDefault();
El target = be.getTargetEl();
El pn = null;
String cls = target.getStyleName();
if (cls.equals("x-date-left-a")) {
showPrevMonth();
} else if (cls.equals("x-date-right-a")) {
showNextMonth();
}
if ((pn = target.findParent("td.x-date-mp-month", 2)) != null) {
mpMonths.removeStyleName("x-date-mp-sel");
El elem = target.findParent("td.x-date-mp-month", 2);
elem.addStyleName("x-date-mp-sel");
mpSelMonth = pn.dom.getPropertyInt("xmonth");
} else if ((pn = target.findParent("td.x-date-mp-year", 2)) != null) {
mpYears.removeStyleName("x-date-mp-sel");
El elem = target.findParent("td.x-date-mp-year", 2);
elem.addStyleName("x-date-mp-sel");
mpSelYear = pn.dom.getPropertyInt("xyear");
} else if (target.is("button.x-date-mp-ok")) {
DateWrapper d = new DateWrapper(mpSelYear, mpSelMonth, 1);
update(d);
hideMonthPicker();