org.gnu.gdk

Class DragContext

public class DragContext extends GObject

A DragContext holds information about a drag in process. It is used on both source and destination sides.
Constructor Summary
DragContext()
Construct a DragContext.
DragContext(Handle handle)
Construct a DragContext using native resources.
Method Summary
voidfinish(boolean success, boolean delete, int time)
DragActiongetAction()
Return the action chosen by the destination.
WindowgetDestination()
Return the destination window.
DragProtocolgetProtocol()
Return the Drag Protocol
WindowgetSource()
Return the source window.
DragActiongetSuggestedAction()
Return the action suggested by the source.
Atom[]getTargets()
booleanisSource()
Returns true if the context is used on the source side.

Constructor Detail

DragContext

public DragContext()
Construct a DragContext.

DragContext

public DragContext(Handle handle)
Construct a DragContext using native resources. Used internally by java-gnome

Method Detail

finish

public void finish(boolean success, boolean delete, int time)

getAction

public DragAction getAction()
Return the action chosen by the destination.

getDestination

public Window getDestination()
Return the destination window.

getProtocol

public DragProtocol getProtocol()
Return the Drag Protocol

getSource

public Window getSource()
Return the source window.

getSuggestedAction

public DragAction getSuggestedAction()
Return the action suggested by the source.

getTargets

public Atom[] getTargets()

isSource

public boolean isSource()
Returns true if the context is used on the source side.