org.gnu.gdk
Class DragContext
A DragContext holds information about a drag in process. It is used
on both source and destination sides.
DragContext() - Construct a DragContext.
|
DragContext(Handle handle) - Construct a DragContext using native resources.
|
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , collect , freezeNotify , getBooleanProperty , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getPixbufProperty , getProperty , getStringProperty , hasProperty , notify , removeEventHandler , removeListener , setBooleanProperty , setData , setDoubleProperty , setFloatProperty , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
DragContext
public DragContext()
Construct a DragContext.
DragContext
public DragContext(Handle handle)
Construct a DragContext using native resources. Used internally by
java-gnome
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.