|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerConnector
Interface implemented by all client side classes that can be communicate with the server. Classes implementing this interface are initialized by the framework when needed and have the ability to communicate with the server.
Method Summary | ||
---|---|---|
com.google.web.bindery.event.shared.HandlerRegistration |
addStateChangeHandler(StateChangeEvent.StateChangeHandler handler)
Adds a handler that is called whenever some part of the state has been updated by the server. |
|
void |
doInit(String connectorId,
ApplicationConnection connection)
Called once by the framework to initialize the connector. |
|
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
Sends the given event to all registered handlers. |
|
List<ServerConnector> |
getChildren()
|
|
ApplicationConnection |
getConnection()
Gets ApplicationConnection instance that created this connector. |
|
ServerConnector |
getParent()
Returns the parent of this connector. |
|
|
getRpcImplementations(String rpcInterfaceId)
For internal use by the framework: returns the registered RPC implementations for an RPC interface identifier. |
|
boolean |
isEnabled()
Tests whether the connector is enabled or not. |
|
void |
onUnregister()
Event called when connector has been unregistered. |
|
void |
setChildren(List<ServerConnector> children)
|
|
void |
setParent(ServerConnector parent)
Sets the parent for this connector. |
|
void |
updateEnabledState(boolean enabledState)
|
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector |
---|
getConnectorId, getState |
Method Detail |
---|
ApplicationConnection getConnection()
doInit(String, ApplicationConnection)
boolean isEnabled()
void doInit(String connectorId, ApplicationConnection connection)
Note that the shared state is not yet available at this point nor any hierarchy information.
<T extends ClientRpc> Collection<T> getRpcImplementations(String rpcInterfaceId)
rpcInterfaceId
- RPC interface identifier: fully qualified interface type name
com.google.web.bindery.event.shared.HandlerRegistration addStateChangeHandler(StateChangeEvent.StateChangeHandler handler)
handler
- The handler that should be added.
void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
event
- The event to send.void onUnregister()
ServerConnector getParent()
getParent
in interface Connector
setParent(ServerConnector)
.void setParent(ServerConnector parent)
Note that calling this method does not fire a
ConnectorHierarchyChangeEvent
. The event is fired only when the
whole hierarchy has been updated.
parent
- The new parent of the connectorvoid updateEnabledState(boolean enabledState)
void setChildren(List<ServerConnector> children)
List<ServerConnector> getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |