*/
public void onSelect$listBoxArticle(Event event) {
// logger.debug(event.toString());
// selectedArticle is filled by annotated databinding mechanism
Article anArticle = getSelectedArticle();
if (anArticle == null) {
return;
}
// check first, if the tabs are created
if (getArticleMainCtrl().getArticleDetailCtrl() == null) {
Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
// if we work with spring beanCreation than we must check a little
// bit deeper, because the Controller are preCreated ?
} else if (getArticleMainCtrl().getArticleDetailCtrl().getBinder() == null) {
Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
}
// INIT ALL RELATED Queries/OBJECTS/LISTS NEW
getArticleMainCtrl().getArticleDetailCtrl().setSelectedArticle(anArticle);
getArticleMainCtrl().getArticleDetailCtrl().setArticle(anArticle);
// store the selected bean values as current
getArticleMainCtrl().doStoreInitValues();
// show the objects data in the statusBar
final String str = Labels.getLabel("common.Article") + ": " + anArticle.getArtKurzbezeichnung();
EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));
}