public class DragAndDropSystem
extends java.lang.Object
Constructor and Description |
---|
DragAndDropSystem(IStage stage)
Instantiates a new drag and drop system.
|
Modifier and Type | Method and Description |
---|---|
void |
dropOccurred(MultiTouchCursorEvent event,
IItem itemDropped)
Drop occurred.
|
void |
registerDragDestinationListener(IItem dragDestination,
DragAndDropListener listener)
Register drag destination listener.
|
void |
registerDragSource(IItem dragSource)
Register drag source.
|
void |
setPickSystemForApp(IPickSystem pickSystem)
Sets the pick system for app.
|
void |
unregisterDragSource(IItem dragSource)
Unregister drag source.
|
public DragAndDropSystem(IStage stage)
stage
- the stagepublic void dropOccurred(MultiTouchCursorEvent event, IItem itemDropped)
event
- the eventitemDropped
- the item droppedpublic void registerDragDestinationListener(IItem dragDestination, DragAndDropListener listener)
dragDestination
- the drag destinationlistener
- the listenerpublic void registerDragSource(IItem dragSource)
dragSource
- the drag sourcepublic void setPickSystemForApp(IPickSystem pickSystem)
pickSystem
- the new pick system for apppublic void unregisterDragSource(IItem dragSource)
dragSource
- the drag source