org.jminor.common.model
Interface EventObserver

All Known Subinterfaces:
Event, State, State.AggregateState, StateObserver

public interface EventObserver

Specifies an Event observer.


Method Summary
 void addListener(ActionListener listener)
          Adds listener to this EventObserver, adding the same listener a second time has no effect.
 void removeListener(ActionListener listener)
          Removes listener from this EventObserver
 

Method Detail

addListener

void addListener(ActionListener listener)
Adds listener to this EventObserver, adding the same listener a second time has no effect.

Parameters:
listener - the listener to add
Throws:
IllegalArgumentException - in case listener is null

removeListener

void removeListener(ActionListener listener)
Removes listener from this EventObserver

Parameters:
listener - the listener to remove