Package muntjac :: Package event :: Package dd :: Module drop_target :: Class IDropTarget
[hide private]
[frames] | no frames]

Class IDropTarget

source code

                        object --+            
                                 |            
               util.IEventListener --+        
                                     |        
         terminal.paintable.IPaintable --+    
                                         |    
                            object --+   |    
                                     |   |    
terminal.variable_owner.IVariableOwner --+    
                                         |    
                            object --+   |    
                                     |   |    
           terminal.sizeable.ISizeable --+    
                                         |    
                   ui.component.IComponent --+
                                             |
                                            IDropTarget
Known Subclasses:

IDropTarget is an interface for components supporting drop operations. A component that wants to receive drop events should implement this interface and provide a DropHandler which will handle the actual drop event.

Instance Methods [hide private]
 
getDropHandler(self)
Returns: the drop handler that will receive the dragged data or null if drops are not currently accepted
source code
 
translateDropTargetDetails(self, clientVariables)
Called before the DragAndDropEvent is passed to DropHandler.
source code

Inherited from ui.component.IComponent: addCallback, addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeCallback, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible

Inherited from terminal.paintable.IPaintable: getDebugId, paint, requestRepaint, requestRepaintRequests, setDebugId

Inherited from terminal.variable_owner.IVariableOwner: changeVariables, isImmediate

Inherited from terminal.sizeable.ISizeable: getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidthUnits

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

Class Variables [hide private]

Inherited from terminal.sizeable.ISizeable: SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS, UNIT_SYMBOLS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getDropHandler(self)

source code 
Returns:
the drop handler that will receive the dragged data or null if drops are not currently accepted

translateDropTargetDetails(self, clientVariables)

source code 

Called before the DragAndDropEvent is passed to DropHandler. Implementation may for example translate the drop target details provided by the client side (drop target) to meaningful server side values. If null is returned the terminal implementation will automatically create a TargetDetails with raw client side data.

Parameters:
  • clientVariables - data passed from the DropTargets client side counterpart.
Returns:
A DropTargetDetails object with the translated data or null to use a default implementation.

See Also: DragSource#getTransferable(Map)