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 XDropTarget
Description
This interface is implemented by a view or window that supports drop
operations.
Differently to Java, the association between view and interface is fixed
and cannot be changed. Otherwise, the AWT messaging would have to be
implemented for any window supporting Drag and Drop operations, which would
be a performance issue.
Methods' Details
addDropTargetListener
Description
Add a DropTargetListener.
The listener will be queried for the XAutoscroll interface
to see if it supports autoscrolling.
Parameter dtl
The listener to add to the notification list.
removeDropTargetListener
Description
Remove a drop target listener.
Parameter dtl
The listener to remove from notification list.
isActive
Description
Indicates either a drop target object is active or not.
Returns
A boolean indicating whether or not this drop target object is
currently active, that is ready to accept drops.
setActive
void
setActive (
[in] boolean
active );
Description
Sets the drop target object active or inactive.
Parameter active
A value of true sets the drop target object active.
A value of false sets the drop target object inactive.
getDefaultActions
byte
getDefaultActions ();
Description
Determine the actions supported by a drop target.
Returns
The current action or actions supported by this drop target.
By default this will include all drag and drop actions.
See also
DNDConstants
setDefaultActions
[oneway] void
setDefaultActions (
[in] byte
actions );
Description
Sets the default acceptable actions for this drop target.
This method is a way to reduce the number of Drag and Drop events
by blocking events for actions not supported by this target.
By default the listener will receive notifications for all actions.
Parameter actions
The actions.
See also
DNDConstants
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.