com.vaadin.terminal.gwt.server.
Class DragAndDropService
java.lang.Object
com.vaadin.terminal.gwt.server.DragAndDropService
All Implemented Interfaces:
- extends Object
- implements VariableOwner
public class DragAndDropService
See Also:
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.terminal.VariableOwner |
---|
VariableOwner.ErrorEvent |
Constructor Summary | |
---|---|
DragAndDropService(AbstractCommunicationManager manager)
|
Method Summary | |
---|---|
void |
changeVariables(Object source,
Map<String,Object> variables)
Called when one or more variables handled by the implementing class are changed. |
boolean |
isEnabled()
Tests if the variable owner is enabled or not. |
boolean |
isImmediate()
Tests if the variable owner is in immediate mode or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DragAndDropService
public DragAndDropService(AbstractCommunicationManager manager)
Method Detail |
---|
changeVariables
public void changeVariables(Object source,
Map<String,Object> variables)
- Specified by:
changeVariables
in interfaceVariableOwner
- Parameters:
source
- 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.
Description copied from interface: VariableOwner
Called when one or more variables handled by the implementing class are changed.
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceVariableOwner
- Returns:
true
if the variable owner is enabled,false
if not
Description copied from interface: VariableOwner
Tests if the variable owner is enabled or not. The terminal should not send any variable changes to disabled variable owners.
isImmediate
public boolean isImmediate()
- Specified by:
isImmediate
in interfaceVariableOwner
- Returns:
true
if the component is in immediate mode,false
if not.
Description copied from interface: VariableOwner
Tests 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()
.