Package org.apache.cayenne.modeler.event

Examples of org.apache.cayenne.modeler.event.ProcedureDisplayEvent


                    (DataMap) data[data.length - 2],
                    (DataDomain) data[data.length - 3]);
            mediator.fireEmbeddableDisplayEvent(e);
        }
        else if (obj instanceof Procedure) {
            ProcedureDisplayEvent e = new ProcedureDisplayEvent(
                    this,
                    (Procedure) obj,
                    (DataMap) data[data.length - 2],
                    (DataDomain) data[data.length - 3]);
            mediator.fireProcedureDisplayEvent(e);
View Full Code Here


        eventController.addProcedureDisplayListener(this);
    }
   
    public void processExistingSelection(EventObject e) {
        ProcedureDisplayEvent pde = new ProcedureDisplayEvent(
                this,
                eventController.getCurrentProcedure(),
                eventController.getCurrentDataMap(),
                eventController.getCurrentDataDomain());
        eventController.fireProcedureDisplayEvent(pde);
View Full Code Here

            Object src,
            ProjectController mediator,
            DataMap dataMap,
            Procedure procedure) {
        mediator.fireProcedureEvent(new ProcedureEvent(src, procedure, MapEvent.ADD));
        mediator.fireProcedureDisplayEvent(new ProcedureDisplayEvent(
                src,
                procedure,
                mediator.getCurrentDataMap(),
                mediator.getCurrentDataDomain()));
    }
View Full Code Here

            EmbeddableDisplayEvent ede = (EmbeddableDisplayEvent) de;
            ede.setEmbeddableChanged(true);
            fireEmbeddableDisplayEvent(ede);
        }
        else if (de instanceof ProcedureDisplayEvent) {
            ProcedureDisplayEvent pde = (ProcedureDisplayEvent) de;
            pde.setProcedureChanged(true);
            fireProcedureDisplayEvent(pde);
        }
        else if (de instanceof QueryDisplayEvent) {
            QueryDisplayEvent qde = (QueryDisplayEvent) de;
            qde.setQueryChanged(true);
View Full Code Here

        // Race condition between the two events...?

        // first display the stored procedure
        // for whatever reason, other validators do not require this step
        // (E.g. DbAttributeErrorMsg)
        ProcedureDisplayEvent procedureEvent = new ProcedureDisplayEvent(
                frame,
                procedure,
                map,
                domain);
        procedureEvent.setTabReset(true);
        mediator.fireProcedureDisplayEvent(procedureEvent);

        // now show the failed parameter
        ProcedureParameterDisplayEvent event = new ProcedureParameterDisplayEvent(
                frame,
View Full Code Here

            Object src,
            ProjectController mediator,
            DataMap dataMap,
            Procedure procedure) {
        mediator.fireProcedureEvent(new ProcedureEvent(src, procedure, MapEvent.ADD));
        mediator.fireProcedureDisplayEvent(new ProcedureDisplayEvent(
                src,
                procedure,
                mediator.getCurrentDataMap(),
                (DataChannelDescriptor) mediator.getProject().getRootNode()));
    }
View Full Code Here

                    (DataMap) data[data.length - 2],
                    (DataChannelDescriptor) mediator.getProject().getRootNode());
            mediator.fireEmbeddableDisplayEvent(e);
        }
        else if (obj instanceof Procedure) {
            ProcedureDisplayEvent e = new ProcedureDisplayEvent(
                    this,
                    (Procedure) obj,
                    (DataMap) data[data.length - 2],
                    (DataChannelDescriptor) mediator.getProject().getRootNode());
            mediator.fireProcedureDisplayEvent(e);
View Full Code Here

                .getRootNode();

        Procedure procedure = (Procedure) object;
        DataMap map = procedure.getDataMap();

        ProcedureDisplayEvent event = new ProcedureDisplayEvent(
                frame,
                procedure,
                map,
                domain);
        event.setTabReset(true);
        mediator.fireProcedureDisplayEvent(event);
    }
View Full Code Here

        eventController.addProcedureDisplayListener(this);
    }
   
    public void processExistingSelection(EventObject e) {
        ProcedureDisplayEvent pde = new ProcedureDisplayEvent(
                this,
                eventController.getCurrentProcedure(),
                eventController.getCurrentDataMap(),
                (DataChannelDescriptor)eventController.getProject().getRootNode());
        eventController.fireProcedureDisplayEvent(pde);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.event.ProcedureDisplayEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.