|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteEventConnector
RemoteEventConnector should handle the connections between client- and the server side.
| Method Summary | |
|---|---|
void |
activate(Domain aDomain,
EventFilter anEventFilter,
EventNotification anEventNotification,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Activates the connector for the domain. |
void |
deactivate()
Deactivates the connector for all domains (no events can be got from the domains). |
void |
deactivate(Domain aDomain,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Deactivates the connector for the domain (no events can be got from the domain). |
void |
deactivate(java.util.Set<Domain> aDomains,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Deactivates the connector for the domains (no events can be got from the domains). |
void |
deregisterEventFilter(Domain aDomain,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Deregisters the EventFilter for a domain. |
void |
init(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
That method is called to execute the first server call (for initialization). |
boolean |
isActive()
Checks if the connector is active (listening). |
void |
registerEventFilter(Domain aDomain,
EventFilter anEventFilter,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Registers an EventFilter for a domain. |
void |
registerUnlistenEvent(UnlistenEventListener.Scope anUnlistenScope,
UnlistenEvent anUnlistenEvent,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Registers an UnlistenEvent to the server side which
will be triggered when a timeout or unlisten/deactivation for a domain occurs. |
| Method Detail |
|---|
void init(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
aCallback - callback
void activate(Domain aDomain,
EventFilter anEventFilter,
EventNotification anEventNotification,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
EventFilter
to filter events on the server side is optional.
aDomain - domain to activateanEventFilter - EventFilter to filter the events on the server side (optional)anEventNotification - supports the notification about incoming eventsaCallback - callbackvoid deactivate()
void deactivate(java.util.Set<Domain> aDomains,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
aDomains - domains to deactivateaCallback - callback
void deactivate(Domain aDomain,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
aDomain - domain to deactivateaCallback - callbackboolean isActive()
void registerUnlistenEvent(UnlistenEventListener.Scope anUnlistenScope,
UnlistenEvent anUnlistenEvent,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
UnlistenEvent to the server side which
will be triggered when a timeout or unlisten/deactivation for a domain occurs.
anUnlistenScope - scope of the unlisten events to receiveanUnlistenEvent - UnlistenEvent which can contain custom dataaCallback - callback
void registerEventFilter(Domain aDomain,
EventFilter anEventFilter,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
EventFilter for a domain. That can be used when
the domain is already activated and an EventFilter is
needed later or isn't available when the domain becomes active.
aDomain - domainanEventFilter - EventFilter to filter the events on the server side (optional)aCallback - callback
void deregisterEventFilter(Domain aDomain,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
EventFilter for a domain.
aDomain - domain to remove the EventFilter fromaCallback - callback
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||