public abstract class DndHandlerBase extends Object implements IDndHandler
Constructor and Description |
---|
DndHandlerBase() |
Modifier and Type | Method and Description |
---|---|
int |
getKeyCode()
Returns the key code associated with this handler
|
static String |
getSourceElementNames(List<SVGElementModel> sourceElements) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCommands, getMessage, getOperationCssAttr
public boolean isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event, List<SVGElementModel> sourceElements)
IDndHandler
isValidSource
in interface IDndHandler
event
- The drag and drop eventsourceElements
- The elements being draggedpublic static String getSourceElementNames(List<SVGElementModel> sourceElements)
public boolean isValidTarget(List<SVGElementModel> sourceElements, SVGElementModel target)
IDndHandler
isValidTarget
in interface IDndHandler
sourceElements
- The elements being draggedtarget
- The hovered targetpublic int getKeyCode()
IDndHandler
getKeyCode
in interface IDndHandler
Copyright © 2018. All Rights Reserved.