public class DndCopyHandler extends DndHandlerBase
Constructor and Description |
---|
DndCopyHandler() |
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.
|
getSourceElementNames, isValidTarget
public boolean isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event, List<SVGElementModel> sourceElements)
IDndHandler
isValidSource
in interface IDndHandler
isValidSource
in class DndHandlerBase
event
- The drag and drop eventsourceElements
- The elements being draggedpublic String getOperationCssAttr()
IDndHandler
public String getMessage(List<SVGElementModel> sourceElements)
IDndHandler
sourceElements
- The elements being draggedpublic int getKeyCode()
IDndHandler
getKeyCode
in interface IDndHandler
getKeyCode
in class DndHandlerBase
public void createCommands(List<SVGElementModel> sourceElements, SVGElementModel target, DndCommandFactory.DropGesture dropGesture)
IDndHandler
sourceElements
- The drag source elementstarget
- The drop target elementsdropGesture
- The drop gestureCopyright © 2018. All Rights Reserved.