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, isValidTargetpublic boolean isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event,
List<SVGElementModel> sourceElements)
IDndHandlerisValidSource in interface IDndHandlerisValidSource in class DndHandlerBaseevent - The drag and drop eventsourceElements - The elements being draggedpublic String getOperationCssAttr()
IDndHandlerpublic String getMessage(List<SVGElementModel> sourceElements)
IDndHandlersourceElements - The elements being draggedpublic int getKeyCode()
IDndHandlergetKeyCode in interface IDndHandlergetKeyCode in class DndHandlerBasepublic void createCommands(List<SVGElementModel> sourceElements, SVGElementModel target, DndCommandFactory.DropGesture dropGesture)
IDndHandlersourceElements - The drag source elementstarget - The drop target elementsdropGesture - The drop gestureCopyright © 2018. All Rights Reserved.