org.scijava.event
Interface EventSubscriber<E extends SciJavaEvent>

Type Parameters:
E - Type of event for which to listen
All Superinterfaces:
org.bushe.swing.event.EventSubscriber<E>

public interface EventSubscriber<E extends SciJavaEvent>
extends org.bushe.swing.event.EventSubscriber<E>

Interface for subscribers that wish to be notified of SciJava events.

There is no defined order to the notifications. This is an intentional limitation, to keep the event subsystem from growing too complex. We have found that when event handlers need to make assumptions about the order events are delivered, there is generally something wrong with the event delivery pattern in question. A better solution is to fire more granular types of events at multiple stages of the program's workflow.

Author:
Curtis Rueden

Method Summary
 Class<E> getEventClass()
           
 void onEvent(E event)
           
 

Method Detail

onEvent

void onEvent(E event)
Specified by:
onEvent in interface org.bushe.swing.event.EventSubscriber<E extends SciJavaEvent>

getEventClass

Class<E> getEventClass()


Copyright © 2009–2014 SciJava. All rights reserved.