Package org.apache.cayenne.modeler.event

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


        String prevName = mediator.getCurrentListenerClass();
        if (getEntityListener(newValue) == null) {
            EntityListener listener = getEntityListener(prevName);
            if (listener != null) {
                listener.setClassName(newValue);
                mediator.fireEntityListenerEvent(new EntityListenerEvent(
                        this,
                        prevName,
                        newValue,
                        MapEvent.CHANGE));
            }
View Full Code Here


    public void removeEntityListener(ObjEntity objEnt, String listenerClass) {
     
        objEnt.removeEntityListener(listenerClass);

        getProjectController().fireEntityListenerEvent(
                new EntityListenerEvent(
                        RemoveEntityListenerAction.this,
                        listenerClass,
                        listenerClass,
                        MapEvent.REMOVE
                )
View Full Code Here

                );
            }
            else {
                renameEntityListener(currentListenerClass, newListenerClass);
                getProjectController().fireEntityListenerEvent(
                        new EntityListenerEvent(
                                e.getSource(),
                                currentListenerClass,
                                newListenerClass,
                                MapEvent.ADD
                        )
View Full Code Here

    public void removeEntityListener(DataMap map, String listenerClass) {
        if (listenerClass != null) {
            map.removeDefaultEntityListener(listenerClass);

            getProjectController().fireEntityListenerEvent(
                    new EntityListenerEvent(
                            RemoveEntityListenerForDataMapAction.this,
                            listenerClass,
                            listenerClass,
                            MapEvent.REMOVE
                    )
View Full Code Here

    public void createMapListener(DataMap dataMap, EntityListener listener) {
        dataMap.addDefaultEntityListener(listener);

        getProjectController().fireEntityListenerEvent(
                new EntityListenerEvent(CreateDataMapEntityListenerAction.this, listener
                        .getClassName(), listener.getClassName(), MapEvent.ADD));
    }
View Full Code Here

    public void createEntityListener(ObjEntity objEntity, EntityListener listener) {
        objEntity.addEntityListener(listener);

        getProjectController().fireEntityListenerEvent(
                new EntityListenerEvent(CreateObjEntityListenerAction.this, listener
                        .getClassName(), listener.getClassName(), MapEvent.ADD));
    }
View Full Code Here

        String prevName = mediator.getCurrentListenerClass();
        if (getEntityListener(newValue) == null) {
            EntityListener listener = getEntityListener(prevName);
            if (listener != null) {
                listener.setClassName(newValue);
                mediator.fireEntityListenerEvent(new EntityListenerEvent(
                        this,
                        prevName,
                        newValue,
                        MapEvent.CHANGE));
            }
View Full Code Here

TOP

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

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.