|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorDnDListener
Author Drag and Drop listener interface for the AWT implementation.
The AuthorDnDListener
interface
is the callback interface used by the author editor page to provide
notification of DnD operations that involve it.
Create a listener object by implementing the interface and then when
the drag enters, moves over, or exits
the author editor page, when
the drop action changes, and when the drop occurs, the relevant method in
the listener object is invoked, and the DropTargetEvent
is
passed to it.
Method Summary | |
---|---|
boolean |
authorDragEnter(DropTargetDragEvent event)
Called while a drag operation is ongoing, when the mouse pointer enters the author editor page where this listener is registered. |
boolean |
authorDragExit(DropTargetEvent event)
Called while a drag operation is ongoing, when the mouse pointer has exited the author editor page where this listener is registered. |
boolean |
authorDragOver(DropTargetDragEvent event)
Called when a drag operation is ongoing, while the mouse pointer is still over the author editor page where this listener is registered. |
boolean |
authorDrop(Transferable transferable,
DropTargetDropEvent event)
Called when the drag operation has terminated with a drop on the author editor page where this listener is registered. |
boolean |
authorSupportsFlavor(DataFlavor flavor)
Check if the data flavor can be handled by the listener. |
void |
init(AuthorAccess authorAccess)
Initialize the DnD listener. |
Methods inherited from interface ro.sync.ecss.extensions.api.Extension |
---|
getDescription |
Method Detail |
---|
boolean authorDragOver(DropTargetDragEvent event)
event
- The DropTargetDropEvent
event.
true
if the listener handled the event.boolean authorDrop(Transferable transferable, DropTargetDropEvent event)
This method is responsible for undertaking
the transfer of the data associated with the
gesture. The DropTargetDropEvent
provides a means to obtain a Transferable
object that represents the data object(s) to
be transfered.
transferable
- The Transferable
object.event
- The DropTargetDragEvent
event.
true
if the listener handled the event.boolean authorSupportsFlavor(DataFlavor flavor)
flavor
- The DataFlavor
flavor.
true
if the flavor is supported.boolean authorDragExit(DropTargetEvent event)
event
- The DropTargetEvent
event.
true
if the listener consumed the drag exit event.boolean authorDragEnter(DropTargetDragEvent event)
event
- The DropTargetDragEvent
event.
true
if the listener consumed the drag enter event.void init(AuthorAccess authorAccess)
authorAccess
- The AuthorAccess
providing access to
specific components corresponding to editor, document, workspace,
tables, change tracking and utility informations and actions.
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |