use of org.apache.cayenne.modeler.event.ObjEntityDisplayListener in project cayenne by apache.
the class ObjEntityCallbackMethodsTab method initController.
/**
* listeners initialization
*/
protected void initController() {
super.initController();
addComponentListener(new ComponentAdapter() {
public void componentShown(ComponentEvent e) {
rebuildTables();
}
});
mediator.addObjEntityDisplayListener(new ObjEntityDisplayListener() {
public void currentObjEntityChanged(EntityDisplayEvent e) {
if (ObjEntityCallbackMethodsTab.this.isVisible()) {
rebuildTables();
}
}
});
}
Aggregations