(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: datatransfer :: dnd ::

struct DragGestureEvent
Base Hierarchy
DragGestureEvent
 ┗ ::com::sun::star::lang::EventObject
Description
A DragGestureEvent is passed to the method XDragGestureListener::dragGestureRecognized() when a particular XDragGestureRecognizer detects that a platform dependent drag initiating gesture has occurred on the component that it is tracking.

Elements' Summary
DragAction The action selected by the user.  
DragOriginX The x coordinate where the drag originated in component coordinates.  
DragOriginY The y coordinate where the drag originated in component coordinates.  
DragSource The DragSource associated with this drag action.  
Event The last event comprising the gesture.  
Elements' Details
DragAction
byte DragAction;
Description
The action selected by the user.

Different constants may be combined using a logical OR.

It's further possible to combine the ACTION_DEFAULT with one of the other actions defined in DNDConstants. This means the user did not press any key during the Drag and Drop operation and the action that was combined with ACTION_DEFAULT is the system default action.

See also
DNDConstants
DragOriginX
long DragOriginX;
Description
The x coordinate where the drag originated in component coordinates.
DragOriginY
long DragOriginY;
Description
The y coordinate where the drag originated in component coordinates.
DragSource
XDragSource DragSource;
Description
The DragSource associated with this drag action.
Event
any Event;
Description
The last event comprising the gesture.

The initial trigger event will presumably be a ::com::sun::star::awt::MouseEvent event. If it is not, the implementation should either react accordingly or presume that the left mouse button was clicked.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.