Examples of DomainDisplayEvent


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

        } else if (de instanceof DataNodeDisplayEvent) {
            DataNodeDisplayEvent dnde = (DataNodeDisplayEvent) de;
            dnde.setDataNodeChanged(true);
            fireDataNodeDisplayEvent(dnde);
        } else if (de instanceof DomainDisplayEvent) {
            DomainDisplayEvent dde = (DomainDisplayEvent) de;
            dde.setDomainChanged(true);
            fireDomainDisplayEvent(dde);
        }

        // turn off refiring
        currentState.isRefiring = false;
View Full Code Here

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

                .getLastPathComponent();

        Object[] data = getUserObjects(currentNode);
        if (data.length == 0) {
            // this should clear the right-side panel
            mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, null));
            return;
        }

        Object obj = data[data.length - 1];
        if (obj instanceof DataDomain) {
            mediator
                    .fireDomainDisplayEvent(new DomainDisplayEvent(this, (DataDomain) obj));
        }
        else if (obj instanceof DataMap) {
            if (data.length == 3) {
                mediator.fireDataMapDisplayEvent(new DataMapDisplayEvent(
                        this,
View Full Code Here

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

                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));
    }
View Full Code Here

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

        controller.projectOpenedAction(project);

        // select default domain
        getProjectController().fireDomainDisplayEvent(
                new DomainDisplayEvent(this, domain));
    }
View Full Code Here

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

            domain = (DataDomain) path[len - 1];
        }
    }

  public void displayField(ProjectController mediator, JFrame frame) {
    DomainDisplayEvent event;
    event = new DomainDisplayEvent(frame, domain);
    mediator.fireDomainDisplayEvent(event);
  }
View Full Code Here

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

            DataNodeDisplayEvent dnde = (DataNodeDisplayEvent) de;
            dnde.setDataNodeChanged(true);
            fireDataNodeDisplayEvent(dnde);
        }
        else if (de instanceof DomainDisplayEvent) {
            DomainDisplayEvent dde = (DomainDisplayEvent) de;
            dde.setDomainChanged(true);
            fireDomainDisplayEvent(dde);
        }

        // turn off refiring
        currentState.isRefiring = false;
View Full Code Here

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

            domain = (DataDomain) path[len - 1];
        }
    }

  public void displayField(ProjectController mediator, JFrame frame) {
    DomainDisplayEvent event;
    event = new DomainDisplayEvent(frame, domain);
    mediator.fireDomainDisplayEvent(event);
  }
View Full Code Here

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

            DataNodeDisplayEvent dnde = (DataNodeDisplayEvent) de;
            dnde.setDataNodeChanged(true);
            fireDataNodeDisplayEvent(dnde);
        }
        else if (de instanceof DomainDisplayEvent) {
            DomainDisplayEvent dde = (DomainDisplayEvent) de;
            dde.setDomainChanged(true);
            fireDomainDisplayEvent(dde);
        }

        // turn off refiring
        currentState.isRefiring = false;
View Full Code Here

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

        controller.projectOpenedAction(project);

        // select default domain
        getProjectController().fireDomainDisplayEvent(
                new DomainDisplayEvent(this, domain));
    }
View Full Code Here

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

                .getLastPathComponent();

        Object[] data = getUserObjects(currentNode);
        if (data.length == 0) {
            // this should clear the right-side panel
            mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, null));
            return;
        }

        Object obj = data[data.length - 1];
        if (obj instanceof DataDomain) {
            mediator
                    .fireDomainDisplayEvent(new DomainDisplayEvent(this, (DataDomain) obj));
        }
        else if (obj instanceof DataMap) {
            if (data.length == 3) {
                mediator.fireDataMapDisplayEvent(new DataMapDisplayEvent(
                        this,
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.