public interface IDndHandler
Modifier and Type | Method and Description |
---|---|
void |
createCommands(List<SVGElementModel> sourceElements,
SVGElementModel target,
DndCommandFactory.DropGesture dropGesture)
Creates the commands which represent the drag and drop operation
|
int |
getKeyCode()
Returns the key code associated with this handler
|
String |
getMessage(List<SVGElementModel> sourceElements)
Returns the text which appears in the ghost during a
drag and drop operation
|
String |
getOperationCssAttr()
Returns the DOM attribute value which trigger the display
of the proper icons in the drag ghost using a CSS rule
|
boolean |
isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event,
List<SVGElementModel> sourceElements)
Determines the feasibility of creating a command using the
specified source elements as drag sources.
|
boolean |
isValidTarget(List<SVGElementModel> sourceElements,
SVGElementModel target)
Determines if dropping on the specified target will result
in a successful command creation.
|
boolean isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event, List<SVGElementModel> sourceElements)
event
- The drag and drop eventsourceElements
- The elements being draggedboolean isValidTarget(List<SVGElementModel> sourceElements, SVGElementModel target)
sourceElements
- The elements being draggedtarget
- The hovered targetvoid createCommands(List<SVGElementModel> sourceElements, SVGElementModel target, DndCommandFactory.DropGesture dropGesture)
sourceElements
- The drag source elementstarget
- The drop target elementsdropGesture
- The drop gestureString getOperationCssAttr()
String getMessage(List<SVGElementModel> sourceElements)
sourceElements
- The elements being draggedint getKeyCode()
Copyright © 2018. All Rights Reserved.