|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.DragAndDropService
public class DragAndDropService
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.VariableOwner |
|---|
VariableOwner.ErrorEvent |
| Constructor Summary | |
|---|---|
DragAndDropService(AbstractCommunicationManager manager)
|
|
| Method Summary | |
|---|---|
void |
attach()
Notifies the connector that it is connected to an application. |
void |
beforeClientResponse(boolean initial)
Called before the shared state and RPC invocations are sent to the client. |
void |
changeVariables(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> variables)
Called when one or more variables handled by the implementing class are changed. |
void |
detach()
Notifies the component that it is detached from the application. |
org.json.JSONObject |
encodeState()
Called by the framework to encode the state to a JSONObject. |
java.lang.String |
getConnectorId()
|
java.util.Collection<Extension> |
getExtensions()
Get a read-only collection of all extensions attached to this connector. |
ClientConnector |
getParent()
|
RpcManager |
getRpcManager(java.lang.Class<?> rpcInterface)
Returns the RPC manager instance to use when receiving calls for an RPC interface. |
java.lang.Class<? extends com.vaadin.shared.communication.SharedState> |
getStateType()
Returns the type of the shared state for this connector |
UI |
getUI()
Returns the UI this connector is attached to |
boolean |
handleConnectorRequest(VaadinRequest request,
VaadinResponse response,
java.lang.String path)
Handle a request directed to this connector. |
boolean |
isConnectorEnabled()
Checks if the communicator is enabled. |
boolean |
isEnabled()
Tests if the variable owner is enabled or not. |
boolean |
isImmediate()
Tests if the variable owner is in immediate mode or not. |
void |
markAsDirty()
Marks that this connector's state might have changed. |
void |
markAsDirtyRecursive()
Causes this connector and all connectors below it to be marked as dirty. |
void |
removeExtension(Extension extension)
Remove an extension from this connector. |
void |
requestRepaint()
Deprecated. |
void |
requestRepaintAll()
Deprecated. |
java.util.List<ClientMethodInvocation> |
retrievePendingRpcCalls()
Returns the list of pending server to client RPC calls and clears the list. |
void |
setParent(ClientConnector parent)
Sets the parent connector of the connector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DragAndDropService(AbstractCommunicationManager manager)
| Method Detail |
|---|
public void changeVariables(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> variables)
VariableOwner
changeVariables in interface VariableOwnersource - the Source of the variable change. This is the origin of the
event. For example in Web Adapter this is the request.variables - the Mapping from variable names to new variable values.public boolean isEnabled()
VariableOwnerTests if the variable owner is enabled or not. The terminal should not send any variable changes to disabled variable owners.
isEnabled in interface VariableOwnertrue if the variable owner is enabled,
false if notpublic boolean isImmediate()
VariableOwnerTests if the variable owner is in immediate mode or not. Being in immediate mode means that all variable changes are required to be sent back from the terminal immediately when they occur.
Note: VariableOwner does not include a set-
method for the immediateness property. This is because not all
VariableOwners wish to offer the functionality. Such VariableOwners are
never in the immediate mode, thus they always return false
in VariableOwner.isImmediate().
isImmediate in interface VariableOwnertrue if the component is in immediate mode,
false if not.public java.lang.String getConnectorId()
getConnectorId in interface com.vaadin.shared.Connectorpublic boolean isConnectorEnabled()
ClientConnector
isConnectorEnabled in interface ClientConnectorpublic java.util.List<ClientMethodInvocation> retrievePendingRpcCalls()
ClientConnector
retrievePendingRpcCalls in interface ClientConnectorpublic RpcManager getRpcManager(java.lang.Class<?> rpcInterface)
RpcTarget
getRpcManager in interface RpcTargetrpcInterface - interface for which the call was made
public java.lang.Class<? extends com.vaadin.shared.communication.SharedState> getStateType()
ClientConnector
getStateType in interface ClientConnector@Deprecated public void requestRepaint()
requestRepaint in interface ClientConnectorpublic void markAsDirty()
ClientConnectorClientConnector.beforeClientResponse(boolean) followed by ClientConnector.encodeState()
for all connectors that are marked as dirty and send any updated state
info to the client.
markAsDirty in interface ClientConnectorpublic ClientConnector getParent()
getParent in interface ClientConnectorgetParent in interface com.vaadin.shared.Connector@Deprecated public void requestRepaintAll()
requestRepaintAll in interface ClientConnectorpublic void markAsDirtyRecursive()
ClientConnectorThis should only be used in special cases, e.g when the state of a descendant depends on the state of an ancestor.
markAsDirtyRecursive in interface ClientConnectorClientConnector.markAsDirty()public void setParent(ClientConnector parent)
ClientConnector
This method automatically calls ClientConnector.attach() if the connector
becomes attached to the application, regardless of whether it was
attached previously. Conversely, if the parent is null and the
connector is attached to the application, ClientConnector.detach() is called for
the connector.
This method is rarely called directly. One of the
ComponentContainer.addComponent(Component) or
AbstractClientConnector.addExtension(Extension) methods are
normally used for adding connectors to a parent and they will call this
method implicitly.
It is not possible to change the parent without first setting the parent
to null.
setParent in interface ClientConnectorparent - the parent connectorpublic void attach()
ClientConnector
The caller of this method is ClientConnector.setParent(ClientConnector) if the
parent is itself already attached to the application. If not, the parent
will call the ClientConnector.attach() for all its children when it is attached
to the application. This method is always called before the connector's
data is sent to the client-side for the first time.
The attachment logic is implemented in AbstractClientConnector.
attach in interface ClientConnectorpublic void detach()
ClientConnector
The caller of this method is ClientConnector.setParent(ClientConnector) if the
parent is in the application. When the parent is detached from the
application it is its response to call ClientConnector.detach() for all the
children and to detach itself from the terminal.
detach in interface ClientConnectorpublic java.util.Collection<Extension> getExtensions()
ClientConnector
getExtensions in interface ClientConnectorpublic void removeExtension(Extension extension)
ClientConnector
removeExtension in interface ClientConnectorextension - the extension to remove.public UI getUI()
ClientConnector
getUI in interface ClientConnectorpublic void beforeClientResponse(boolean initial)
ClientConnector
This method must not alter the component hierarchy in any way. Calling
ClientConnector.markAsDirty() from this method will have no effect.
beforeClientResponse in interface ClientConnectorinitial - true if the client-side connector will be created
and initialized after this method has been invoked.
false if there is already an initialized
client-side connector.
public org.json.JSONObject encodeState()
throws org.json.JSONException
ClientConnectorAbstractCommunicationManager.encodeState(ClientConnector, SharedState)
.
encodeState in interface ClientConnectororg.json.JSONException - if the state can not be encoded
public boolean handleConnectorRequest(VaadinRequest request,
VaadinResponse response,
java.lang.String path)
throws java.io.IOException
ClientConnectorConnectorResources.
Requests to /APP/connector/[ui id]/[connector id]/ are
routed to this method with the remaining part of the requested path
available in the path parameter.
DynamicConnectorResource can be used to easily make an
appropriate URL available to the client-side code.
handleConnectorRequest in interface ClientConnectorrequest - the request that should be handledresponse - the response object to which the response should be writtenpath - the requested relative path
true if the request has been handled,
false if no response has been written.
java.io.IOException - if there is a problem generating a response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||