public class GwtStatisticsEventSystem extends Object implements StatisticsEventSystem
StatisticsEventSystem that dispatches all the
GWT events.| Constructor and Description |
|---|
GwtStatisticsEventSystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(StatisticsEventListener listener,
boolean replay)
Register a listener to receive future
events. |
void |
clearEventHistory()
Clears the event history.
|
void |
enable(boolean replay) |
protected static void |
onEvent(GwtStatisticsEvent event,
StatisticsEventListener listener) |
Iterator<StatisticsEvent> |
pastEvents()
Provides read-only access to all the recorded events.
|
void |
removeListener(StatisticsEventListener listener)
Removes a listener so it will no longer receive any
events. |
public void enable(boolean replay)
protected static void onEvent(GwtStatisticsEvent event, StatisticsEventListener listener)
public void addListener(StatisticsEventListener listener, boolean replay)
StatisticsEventSystemevents.addListener in interface StatisticsEventSystemreplay - if true, past (recorded) events will be replayed on the
given listener.public void removeListener(StatisticsEventListener listener)
StatisticsEventSystemevents.removeListener in interface StatisticsEventSystempublic void clearEventHistory()
StatisticsEventSystemclearEventHistory in interface StatisticsEventSystempublic Iterator<StatisticsEvent> pastEvents()
StatisticsEventSystempastEvents in interface StatisticsEventSystemCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.