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

pack-priv final Class XDnDDragSourceProtocol

extends XDragSourceProtocol
Class Inheritance
Imports
java.awt.datatransfer.Transferable, .DataFlavor, java.awt.dnd.DnDConstants, .InvalidDnDOperationException, java.util.Map, sun.util.logging.PlatformLogger, jdk.internal.misc.Unsafe

XDragSourceProtocol implementation for XDnD protocol.
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final PlatformLogger
private static final Unsafe

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv static XDragSourceProtocol
createInstance(XDragSourceProtocolListener listener)

Creates an instance associated with the specified listener.

public String
getProtocolName()

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

Returns the protocol name.

public XDragSourceProtocol.TargetWindowInfo
protected void

Returns:

true if the initialized successfully.
initializeDragImpl
(int actions, Transferable contents, Map<Long, DataFlavor> formatMap, long[] formats)

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

Performs protocol-specific drag initialization.

public boolean
processClientMessage(XClientMessageEvent xclient)

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

Processes the specified client message event.

public boolean
private boolean
private boolean
public void
run()

public 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:
attachTargetWindowcleanupcleanupTargetInfofinalizeDropgetDragSourceWindowgetProtocolListenergetTargetProtocolVersiongetTargetProxyWindowgetTargetWindowinitializeDraginitiateDrop

Field Detail

loggerback to summary
private static final PlatformLogger logger
unsafeback to summary
private static final Unsafe unsafe

Constructor Detail

XDnDDragSourceProtocolback to summary
protected XDnDDragSourceProtocol(XDragSourceProtocolListener listener)

Method Detail

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

Creates an instance associated with the specified listener.

Exceptions
NullPointerException:
if listener is null.
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.

Performs protocol-specific drag initialization.

Returns:void

true if the initialized successfully.

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

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

Doc from sun.awt.X11.XDragSourceProtocol.processClientMessage.

Processes the specified client message event.

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

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

Annotations
@Override
processXdndFinishedback to summary
private boolean processXdndFinished(XClientMessageEvent xclient)
processXdndStatusback to summary
private boolean processXdndStatus(XClientMessageEvent xclient)
runback to summary
public void run()
sendDropMessageback to summary
public 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