|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.apple.mrj.dnd.DragPrivateAccess
An access-controlled object that exposes unsafe drag-n-drop APIs. Only one caller (typically the AWT peers or other application framework) may instantiate or access the factory. Other clients go through that framework, whose public API should provide safety and security.
Constructor Summary | |
DragPrivateAccess()
Deprecated. Creates a DragPrivateAccess. |
Method Summary | |
IncomingDrag |
createIncomingDrag(int dragRef)
Deprecated. Creates an IncomingDrag from an existing Mac OS DragRef ID,
presumably the ID passed into a DragTrackingHandler callback. |
OutgoingDrag |
createOutgoingDrag()
Deprecated. Creates a new OutgoingDrag with no items/flavors. |
OutgoingDrag |
getCurrentOutgoingDrag()
Deprecated. Returns the OutgoingDrag currently being tracked, or null if none. |
void |
getModifiers(Drag drag,
short[] outNow,
short[] outAtPress,
short[] outAtRelease)
Deprecated. Returns the state of the modifier keys at current moment, at the time the mouse was pressed, and at the time the mouse was released. |
void |
postTrack(OutgoingDrag drag,
short err)
Deprecated. Restores state after TrackDrag. |
void |
preTrack(OutgoingDrag drag,
Object source)
Deprecated. Sets up state before TrackDrag. |
void |
setCurrentDestination(IncomingDrag d,
Object destination)
Deprecated. Should be called from the framework's drag-tracking handler. |
void |
setIncomingDragRef(int ref)
Deprecated. Should be called from the framework's drag-tracking handler. |
boolean |
track(OutgoingDrag drag,
Object source,
byte[] eventRecord,
int rgnHandle)
Deprecated. Tracks a drag-n-drop operation; returns after the drop is complete, with a boolean value that indicates whether a target accepted the data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DragPrivateAccess() throws SecurityException
Method Detail |
public IncomingDrag createIncomingDrag(int dragRef)
DragRef
ID,
presumably the ID passed into a DragTrackingHandler
callback.
This call is unsafe, since an incorrect DragRef passed in will create a bogus object that will crash when called. The only DragRef that should be used is one passed in via a registered Drag Manager tracking or receive handler.
public OutgoingDrag createOutgoingDrag()
OutgoingDrag#OutgoingDrag
,
DragGestureEvent#createDrag
public boolean track(OutgoingDrag drag, Object source, byte[] eventRecord, int rgnHandle)
public void preTrack(OutgoingDrag drag, Object source)
track
.
If clients need to call TrackDrag themselves, they should call this first,
but always call postDrag
afterwards!public void postTrack(OutgoingDrag drag, short err)
track
.
If clients need to call TrackDrag themselves, they should call this afterwards.err
- The OSErr returned from TrackDragpublic void getModifiers(Drag drag, short[] outNow, short[] outAtPress, short[] outAtRelease)
null
for the
corresponding parameter.
Note that these are Mac modifier values, not AWT modifiers.public OutgoingDrag getCurrentOutgoingDrag()
public void setIncomingDragRef(int ref)
public void setCurrentDestination(IncomingDrag d, Object destination)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.