blob: b8d418c7de44e46b321f960833495d0577c17c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package jrummikub.util;
/** Interface for classes that can generate parameterless events */
public interface IEvent {
/**
* Start to publish all events to a given listener
*
* @param listener
* target listener
* @return a connection to remove the listener
*/
public Connection add(IListener listener);
/**
* Stop publishing events to a given listener
*
* @param listener
* target listener
*/
public void remove(IListener listener);
}
|