Search in sources :

Example 1 with MultipleObjectsDisplayListener

use of org.apache.cayenne.modeler.event.MultipleObjectsDisplayListener in project cayenne by apache.

the class ProjectController method fireMultipleObjectsDisplayEvent.

public void fireMultipleObjectsDisplayEvent(MultipleObjectsDisplayEvent e) {
    clearState();
    currentState.paths = e.getNodes();
    currentState.parentPath = e.getParentNode();
    EventListener[] list = listenerList.getListeners(MultipleObjectsDisplayListener.class);
    for (EventListener listener : list) {
        MultipleObjectsDisplayListener temp = (MultipleObjectsDisplayListener) listener;
        temp.currentObjectsChanged(e, getApplication());
    }
}
Also used : MultipleObjectsDisplayListener(org.apache.cayenne.modeler.event.MultipleObjectsDisplayListener) EventListener(java.util.EventListener)

Aggregations

EventListener (java.util.EventListener)1 MultipleObjectsDisplayListener (org.apache.cayenne.modeler.event.MultipleObjectsDisplayListener)1