APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.X11

pack-priv final Class MotifDnDDragSourceProtocol

extends XDragSourceProtocol
implements XEventDispatcher
Class Inheritance
All Implemented Interfaces
sun.awt.X11.XEventDispatcher
Imports
java.awt.datatransfer.Transferable, .DataFlavor, java.awt.dnd.DnDConstants, .InvalidDnDOperationException, java.util.Map, jdk.internal.misc.Unsafe

XDragSourceProtocol implementation for Motif DnD protocol.
Since
1.5

Field Summary

Modifier and TypeField and Description
private long
private static final Unsafe

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
cleanupTargetInfo()

Overrides sun.awt.X11.XDragSourceProtocol.cleanupTargetInfo.

Clears the information on the current drop target.

pack-priv static XDragSourceProtocol
createInstance(XDragSourceProtocolListener listener)

Creates an instance associated with the specified listener.

public void
public String
getProtocolName()

Implements abstract sun.awt.X11.XDragSourceProtocol.getProtocolName.

Returns the protocol name.

public XDragSourceProtocol.TargetWindowInfo
protected void
initializeDragImpl(int actions, Transferable contents, Map<Long, DataFlavor> formatMap, long[] formats)

Implements abstract sun.awt.X11.XDragSourceProtocol.initializeDragImpl.

public boolean

Returns:

true if the event was successfully processed.
processClientMessage
(XClientMessageEvent xclient)

Implements abstract sun.awt.X11.XDragSourceProtocol.processClientMessage.

Processes the specified client message event.

public boolean
protected void
sendDropMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendDropMessage.

public void
sendEnterMessage(long[] formats, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendEnterMessage.

public void
public void
sendMoveMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendMoveMessage.

Inherited from sun.awt.X11.XDragSourceProtocol:
attachTargetWindowcleanupfinalizeDropgetDragSourceWindowgetProtocolListenergetTargetProtocolVersiongetTargetProxyWindowgetTargetWindowinitializeDraginitiateDrop

Field Detail

targetEnterServerTimeback to summary
private long targetEnterServerTime
unsafeback to summary
private static final Unsafe unsafe

Constructor Detail

MotifDnDDragSourceProtocolback to summary
protected MotifDnDDragSourceProtocol(XDragSourceProtocolListener listener)

Method Detail

cleanupTargetInfoback to summary
public void cleanupTargetInfo()

Overrides sun.awt.X11.XDragSourceProtocol.cleanupTargetInfo.

Doc from sun.awt.X11.XDragSourceProtocol.cleanupTargetInfo.

Clears the information on the current drop target.

Annotations
@Override
createInstanceback to summary
pack-priv static XDragSourceProtocol createInstance(XDragSourceProtocolListener listener)

Creates an instance associated with the specified listener.

Exceptions
NullPointerException:
if listener is null.
dispatchEventback to summary
public void dispatchEvent(XEvent ev)

Implements sun.awt.X11.XEventDispatcher.dispatchEvent.

Annotations
@Override
getProtocolNameback to summary
public String getProtocolName()

Implements abstract sun.awt.X11.XDragSourceProtocol.getProtocolName.

Doc from sun.awt.X11.XDragSourceProtocol.getProtocolName.

Returns the protocol name. The protocol name cannot be null.

Annotations
@Override
getTargetWindowInfoback to summary
public XDragSourceProtocol.TargetWindowInfo getTargetWindowInfo(long window)

Implements abstract sun.awt.X11.XDragSourceProtocol.getTargetWindowInfo.

Annotations
@Override
initializeDragImplback to summary
protected void initializeDragImpl(int actions, Transferable contents, Map<Long, DataFlavor> formatMap, long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException

Implements abstract sun.awt.X11.XDragSourceProtocol.initializeDragImpl.

Annotations
@Override
processClientMessageback to summary
public boolean processClientMessage(XClientMessageEvent xclient)

Implements abstract sun.awt.X11.XDragSourceProtocol.processClientMessage.

Processes the specified client message event.

Returns:boolean

true if the event was successfully processed.

Annotations
@Override
processProxyModeEventback to summary
public boolean processProxyModeEvent(XClientMessageEvent xclient, long sourceWindow)

Implements abstract sun.awt.X11.XDragSourceProtocol.processProxyModeEvent.

Annotations
@Override
sendDropMessageback to summary
protected void sendDropMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendDropMessage.

Annotations
@Override
sendEnterMessageback to summary
public void sendEnterMessage(long[] formats, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendEnterMessage.

Annotations
@Override
sendLeaveMessageback to summary
public void sendLeaveMessage(long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendLeaveMessage.

Annotations
@Override
sendMoveMessageback to summary
public void sendMoveMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)

Implements abstract sun.awt.X11.XDragSourceProtocol.sendMoveMessage.

Annotations
@Override