*/
public void onSelect$listBoxOffice(Event event) {
// logger.debug(event.toString());
// selectedOffice is filled by annotated databinding mechanism
Office anOffice = getSelectedOffice();
if (anOffice == null) {
return;
}
// check first, if the tabs are created
if (getOfficeMainCtrl().getOfficeDetailCtrl() == null) {
Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
// if we work with spring beanCreation than we must check a little
// bit deeper, because the Controller are preCreated ?
} else if (getOfficeMainCtrl().getOfficeDetailCtrl().getBinder() == null) {
Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
}
// INIT ALL RELATED Queries/OBJECTS/LISTS NEW
getOfficeMainCtrl().getOfficeDetailCtrl().setSelectedOffice(anOffice);
getOfficeMainCtrl().getOfficeDetailCtrl().setOffice(anOffice);
// store the selected bean values as current
getOfficeMainCtrl().doStoreInitValues();
// show the objects data in the statusBar
String str = Labels.getLabel("common.Office") + ": " + anOffice.getFilBezeichnung();
EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));
}