public class GwtStatisticsEventDispatcher extends Object implements StatisticsEventDispatcher
| Constructor and Description |
|---|
GwtStatisticsEventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(StatisticsEvent event)
Dispatches the given event.
|
boolean |
enabled()
Returns
true if there is somebody listening to events on the other
side. |
StatisticsEvent |
newEvent(String system,
String group,
double millis,
String type)
Creates a new event object to be dispatched.
|
void |
setExtraParameter(StatisticsEvent event,
String name,
com.google.gwt.core.client.JavaScriptObject value)
Sets the given extra parameter's value as a JavaScriptObject.
|
void |
setExtraParameter(StatisticsEvent event,
String name,
String value)
Sets the given extra parameter's value as a String.
|
public boolean enabled()
StatisticsEventDispatchertrue if there is somebody listening to events on the other
side.enabled in interface StatisticsEventDispatcherpublic StatisticsEvent newEvent(String system, String group, double millis, String type)
StatisticsEventDispatchernewEvent in interface StatisticsEventDispatcherStatisticsEventpublic void setExtraParameter(StatisticsEvent event, String name, String value)
StatisticsEventDispatchersetExtraParameter in interface StatisticsEventDispatcherevent - the event to set the parameter on. This has to be an instance
returned by @{link StatisticsEventDispatcher.newEvent(String, String, double, String).public void setExtraParameter(StatisticsEvent event, String name, com.google.gwt.core.client.JavaScriptObject value)
StatisticsEventDispatchersetExtraParameter in interface StatisticsEventDispatcherevent - the event to set the parameter on. This has to be an instance
returned by @{link StatisticsEventDispatcher.newEvent(String, String, double, String).public void dispatch(StatisticsEvent event)
StatisticsEventDispatcherdispatch in interface StatisticsEventDispatcherevent - the event to dispatch. This has to be an instance
returned by @{link StatisticsEventDispatcher.newEvent(String, String, double, String).Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.