org.gnu.gdk

Class DragContext

public class DragContext extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.gdk.DragContext.

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()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Construct a DragContext.

DragContext

public DragContext(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

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()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the action chosen by the destination.

getDestination

public Window getDestination()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the destination window.

getProtocol

public DragProtocol getProtocol()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the Drag Protocol

getSource

public Window getSource()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the source window.

getSuggestedAction

public DragAction getSuggestedAction()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Return the action suggested by the source.

getTargets

public Atom[] getTargets()

isSource

public boolean isSource()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Returns true if the context is used on the source side.