Examples of fireDomainEvent()


Examples of org.apache.cayenne.modeler.ProjectController.fireDomainEvent()

        DataDomain domain = (DataDomain) NamedObjectFactory.createObject(
                DataDomain.class,
                project.getConfiguration());
        domain.getEntityResolver().setIndexedByClass(false);
        project.getConfiguration().addDomain(domain);
        mediator.fireDomainEvent(new DomainEvent(this, domain, MapEvent.ADD));
        mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
    }

    /**
     * Returns <code>true</code> if path contains a ApplicationProject object.
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireDomainEvent()

    protected void removeDomain() {
        ApplicationProject project = (ApplicationProject) getCurrentProject();
        ProjectController mediator = getProjectController();
        DataDomain domain = mediator.getCurrentDataDomain();
        project.getConfiguration().removeDomain(domain.getName());
        mediator.fireDomainEvent(new DomainEvent(
                Application.getFrame(),
                domain,
                MapEvent.REMOVE));
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireDomainEvent()

    public void removeDomain(DataDomain domain) {
        ApplicationProject project = (ApplicationProject) getCurrentProject();
        ProjectController mediator = getProjectController();

        project.getConfiguration().removeDomain(domain.getName());
        mediator.fireDomainEvent(new DomainEvent(
                Application.getFrame(),
                domain,
                MapEvent.REMOVE));
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireDomainEvent()

    public void createDomain(DataDomain domain) {
        ApplicationProject project = (ApplicationProject) getCurrentProject();
        ProjectController mediator = getProjectController();

        project.getConfiguration().addDomain(domain);
        mediator.fireDomainEvent(new DomainEvent(this, domain, MapEvent.ADD));
        mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
    }

    /**
     * Returns <code>true</code> if path contains a ApplicationProject object.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.