public class Event<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected HashSet<EventHandler<T>> |
handlers |
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(EventHandler<T> handler) |
void |
handleEvent(Object sender,
T e) |
void |
removeEventHandler(EventHandler<T> handler) |
protected final HashSet<EventHandler<T>> handlers
public void addEventHandler(EventHandler<T> handler)
public void removeEventHandler(EventHandler<T> handler)
Copyright © 2012. All Rights Reserved.