Package org.apache.cayenne.map.event

Examples of org.apache.cayenne.map.event.DomainListener


            removeFromHistory(e);
        }

        EventListener[] list = listenerList.getListeners(DomainListener.class);
        for (int i = 0; i < list.length; i++) {
            DomainListener temp = (DomainListener) list[i];
            switch (e.getId()) {
                case MapEvent.ADD:
                    temp.domainAdded(e);
                    break;
                case MapEvent.CHANGE:
                    temp.domainChanged(e);
                    break;
                case MapEvent.REMOVE:
                    temp.domainRemoved(e);
                    break;
                default:
                    throw new IllegalArgumentException("Invalid DomainEvent type: "
                            + e.getId());
            }
View Full Code Here


            refreshNamespace(e.getDomain());
            removeFromHistory(e);
        }

        for (EventListener listener : listenerList.getListeners(DomainListener.class)) {
            DomainListener temp = (DomainListener) listener;
            switch (e.getId()) {
                case MapEvent.ADD:
                    temp.domainAdded(e);
                    break;
                case MapEvent.CHANGE:
                    temp.domainChanged(e);
                    break;
                case MapEvent.REMOVE:
                    temp.domainRemoved(e);
                    break;
                default:
                    throw new IllegalArgumentException("Invalid DomainEvent type: "
                            + e.getId());
            }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.map.event.DomainListener

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.