use of org.apache.cayenne.modeler.event.QueryDisplayListener in project cayenne by apache.
the class ProcedureQueryView method initController.
private void initController() {
queryRoot.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
QueryDescriptor query = mediator.getCurrentQuery();
if (query != null) {
query.setRoot(queryRoot.getModel().getSelectedItem());
mediator.fireQueryEvent(new QueryEvent(this, query));
}
}
});
mediator.addQueryDisplayListener(new QueryDisplayListener() {
public void currentQueryChanged(QueryDisplayEvent e) {
initFromModel();
}
});
}
use of org.apache.cayenne.modeler.event.QueryDisplayListener in project cayenne by apache.
the class SQLTemplateTabbedView method initController.
private void initController() {
mediator.addQueryDisplayListener(new QueryDisplayListener() {
public void currentQueryChanged(QueryDisplayEvent e) {
initFromModel();
}
});
this.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
lastSelectionIndex = getSelectedIndex();
updateTabs();
}
});
}
use of org.apache.cayenne.modeler.event.QueryDisplayListener in project cayenne by apache.
the class SelectQueryTabbedView method initController.
private void initController() {
mediator.addQueryDisplayListener(new QueryDisplayListener() {
public void currentQueryChanged(QueryDisplayEvent e) {
initFromModel();
}
});
this.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
lastSelectionIndex = getSelectedIndex();
updateTabs();
}
});
}
use of org.apache.cayenne.modeler.event.QueryDisplayListener in project cayenne by apache.
the class EjbqlTabbedView method initController.
private void initController() {
mediator.addQueryDisplayListener(new QueryDisplayListener() {
public void currentQueryChanged(QueryDisplayEvent e) {
initFromModel();
}
});
this.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
lastSelectionIndex = getSelectedIndex();
updateTabs();
}
});
}
Aggregations