Package muntjac :: Package terminal :: Package gwt :: Package server :: Module drag_and_drop_service :: Class DragAndDropService
[hide private]
[frames] | no frames]

Class DragAndDropService

source code

                   object --+    
                            |    
variable_owner.IVariableOwner --+
                                |
                               DragAndDropService

Instance Methods [hide private]
 
__init__(self, manager)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
changeVariables(self, source, variables)
Called when one or more variables handled by the implementing class are changed.
source code
 
handleDropRequest(self, dropTarget, variables)
Handles a drop request from the VDragAndDropManager.
source code
 
handleDragRequest(self, dropTarget, variables)
Handles a drag/move request from the VDragAndDropManager.
source code
 
constructDragDropDetails(self, dropTarget, variables)
Construct DragDropDetails based on variables from client drop target.
source code
 
isDropRequest(self, variables) source code
 
getRequestType(self, variables) source code
 
constructTransferable(self, dropHandlerOwner, variables) source code
 
isEnabled(self)
Tests if the variable owner is enabled or not.
source code
 
isImmediate(self)
Tests if the variable owner is in immediate mode or not.
source code
 
printJSONResponse(self, outWriter) source code
 
_isDirty(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, manager)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

changeVariables(self, source, variables)

source code 

Called when one or more variables handled by the implementing class are changed.

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.
Overrides: variable_owner.IVariableOwner.changeVariables
(inherited documentation)

constructDragDropDetails(self, dropTarget, variables)

source code 

Construct DragDropDetails based on variables from client drop target. Uses DragDropDetailsTranslator if available, otherwise a default DragDropDetails implementation is used.

isEnabled(self)

source code 

Tests if the variable owner is enabled or not. The terminal should not send any variable changes to disabled variable owners.

Returns:
True if the variable owner is enabled, False if not
Overrides: variable_owner.IVariableOwner.isEnabled
(inherited documentation)

isImmediate(self)

source code 

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: IVariableOwner 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 isImmediate.

Returns:
True if the component is in immediate mode, False if not
Overrides: variable_owner.IVariableOwner.isImmediate
(inherited documentation)