public void event(UserRequest ureq, Component source, Event event) {
if (source == showAllLink) {
String activationCmd = "cal." + new SimpleDateFormat("yyyy.MM.dd").format(new Date());
DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
//was brasato:: getWindowControl().getDTabs().activateStatic(ureq, HomeSite.class.getName(), activationCmd);
dts.activateStatic(ureq, HomeSite.class.getName(), activationCmd);
} else if (event == ComponentUtil.VALIDATE_EVENT && dirty) {
List events = getMatchingEvents(ureq, getWindowControl());
tableController.setTableDataModel(new EventsModel(events, ureq.getLocale(), trans));
}
}