Search in sources :

Example 11 with QueryDisplayEvent

use of org.apache.cayenne.modeler.event.QueryDisplayEvent 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();
        }
    });
}
Also used : QueryDisplayEvent(org.apache.cayenne.modeler.event.QueryDisplayEvent) ChangeEvent(javax.swing.event.ChangeEvent) QueryDisplayListener(org.apache.cayenne.modeler.event.QueryDisplayListener) ChangeListener(javax.swing.event.ChangeListener)

Aggregations

QueryDisplayEvent (org.apache.cayenne.modeler.event.QueryDisplayEvent)11 DataChannelDescriptor (org.apache.cayenne.configuration.DataChannelDescriptor)4 DataMap (org.apache.cayenne.map.DataMap)4 ChangeEvent (javax.swing.event.ChangeEvent)3 ChangeListener (javax.swing.event.ChangeListener)3 QueryEvent (org.apache.cayenne.configuration.event.QueryEvent)3 QueryDescriptor (org.apache.cayenne.map.QueryDescriptor)3 DataMapDisplayEvent (org.apache.cayenne.modeler.event.DataMapDisplayEvent)3 DataNodeDisplayEvent (org.apache.cayenne.modeler.event.DataNodeDisplayEvent)3 DomainDisplayEvent (org.apache.cayenne.modeler.event.DomainDisplayEvent)3 EmbeddableDisplayEvent (org.apache.cayenne.modeler.event.EmbeddableDisplayEvent)3 EntityDisplayEvent (org.apache.cayenne.modeler.event.EntityDisplayEvent)3 ProcedureDisplayEvent (org.apache.cayenne.modeler.event.ProcedureDisplayEvent)3 QueryDisplayListener (org.apache.cayenne.modeler.event.QueryDisplayListener)3 EventObject (java.util.EventObject)2 DbEntity (org.apache.cayenne.map.DbEntity)2 ObjEntity (org.apache.cayenne.map.ObjEntity)2 ArrayList (java.util.ArrayList)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 DataNodeDescriptor (org.apache.cayenne.configuration.DataNodeDescriptor)1