Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
:: com :: sun :: star :: datatransfer :: dnd ::
interface XDragSource
Description
This interface is implemented by a view or window that supports drag
operations and will be received as part of a DragGestureEvent
through a XDragGestureListener ::dragGestureRecognized()
callback.
Differently to Java, the association between view and interface is fixed
and can not be changed. Otherwise, the AWT messaging would have to be
implemented for any window supporting Drag and Drop operations, which would
be a real performance issue.
Methods' Details
isDragImageSupported
boolean
isDragImageSupported ();
Description
In order to query if drag image support is available.
Returns
A boolean indicating whether or not drag image support is
available on the underlying platform.
getDefaultCursor
Description
To get the default cursor for a specified drag action.
Parameter dragAction
A drag action as specified in DNDConstants .
Returns
The default drag cursor for the specified drag action.
The returned value may be used as parameter for the method
XDragSourceContext ::setCursor() .
startDrag
Description
Starts the drag operation.
Note: this call does not block until the drag and drop
operation ends. If the Drag and Drop system is unable to initiate
a drag operation or if the user attempts to start a drag while an
existing drag operation is still executing, the action fails immediately.
This is indicated by calling
XDragSourceListener ::dragDropEnd()
on the parameter listener with a DragSourceDragEvent showing a failure.
Parameter trigger
The DragGestureEvent that initiated the drag.
Parameter sourceActions
The action or actions supported for this transferable as defined
in DNDConstants .
Parameter cursor
The initial drag cursor id or 0 as default.
Parameter image
The initial drag image id or 0 as default.
Parameter trans
The transferable object dragged.
Parameter listener
The XDragSourceListener .
See also
::com::sun::star::datatransfer ::XTransferable
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.