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

void
finish(boolean success, boolean delete, int time)
DragAction
getAction()
Return the action chosen by the destination.
Window
getDestination()
Return the destination window.
DragProtocol
getProtocol()
Return the Drag Protocol
Window
getSource()
Return the source window.
DragAction
getSuggestedAction()
Return the action suggested by the source.
Atom[]
getTargets()
boolean
isSource()
Returns true if the context is used on the source side.

Constructor Details

DragContext

public DragContext()
Construct a DragContext.

DragContext

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

Method Details

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.