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

pack-priv abstract Class XDropTargetProtocol

extends Object
Class Inheritance
Known Direct Subclasses
sun.awt.X11.MotifDnDDropTargetProtocol, sun.awt.X11.XDnDDropTargetProtocol
Imports
java.io.IOException, java.util.HashMap, sun.util.logging.PlatformLogger

An abstract class for drop protocols on X11 systems. Contains protocol-independent drop target code.
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
private final HashMap<Long, XDropTargetProtocol.EmbedderRegistryEntry>
public static final int
public static final int
private final XDropTargetProtocolListener
private static final PlatformLogger
public static final int
private boolean
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
public abstract void
protected final boolean
public abstract boolean
forwardEventToEmbedded(long embedded, long ctxt, int eventID)

public abstract Object
getData(long ctxt, long format)

protected final XDropTargetProtocol.EmbedderRegistryEntry
getEmbedderRegistryEntry(long embedder)

public abstract int
protected final XDropTargetProtocolListener
public abstract String
getProtocolName()

Returns the protocol name.

public abstract long
public abstract boolean
public abstract boolean
isProtocolSupported(long window)

public abstract boolean
private void
postProcessClientMessage(XClientMessageEvent xclient, boolean processed, int type)

public final boolean
protected abstract boolean
protected final void
putEmbedderRegistryEntry(long embedder, boolean overridden, int version, long proxy)

public abstract void
registerDropTarget(long window)

public abstract void
registerEmbeddedDropSite(long embedded)

public abstract void
protected final void
public abstract boolean
sendDropDone(long ctxt, boolean success, int dropAction)

protected abstract void
protected abstract void
public abstract boolean
sendResponse(long ctxt, int eventID, int action)

public abstract void
unregisterDropTarget(long window)

public final void
public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DROP_MESSAGEback to summary
public static final int DROP_MESSAGE
EMBEDDER_ALREADY_REGISTEREDback to summary
public static final int EMBEDDER_ALREADY_REGISTERED
embedderRegistryback to summary
private final HashMap<Long, XDropTargetProtocol.EmbedderRegistryEntry> embedderRegistry
ENTER_MESSAGEback to summary
public static final int ENTER_MESSAGE
LEAVE_MESSAGEback to summary
public static final int LEAVE_MESSAGE
listenerback to summary
private final XDropTargetProtocolListener listener
loggerback to summary
private static final PlatformLogger logger
MOTION_MESSAGEback to summary
public static final int MOTION_MESSAGE
motionPassedAlongback to summary
private boolean motionPassedAlong
UNKNOWN_MESSAGEback to summary
public static final int UNKNOWN_MESSAGE

Constructor Detail

XDropTargetProtocolback to summary
protected XDropTargetProtocol(XDropTargetProtocolListener listener)

Method Detail

adjustEventForForwardingback to summary
public void adjustEventForForwarding(XClientMessageEvent xclient, XDropTargetProtocol.EmbedderRegistryEntry entry)
cleanupback to summary
public abstract void cleanup()
forwardClientMessageToToplevelback to summary
protected final boolean forwardClientMessageToToplevel(long toplevel, XClientMessageEvent xclient)
forwardEventToEmbeddedback to summary
public abstract boolean forwardEventToEmbedded(long embedded, long ctxt, int eventID)
getDataback to summary
public abstract Object getData(long ctxt, long format) throws IllegalArgumentException, IOException
getEmbedderRegistryEntryback to summary
protected final XDropTargetProtocol.EmbedderRegistryEntry getEmbedderRegistryEntry(long embedder)
getMessageTypeback to summary
public abstract int getMessageType(XClientMessageEvent xclient)
getProtocolListenerback to summary
protected final XDropTargetProtocolListener getProtocolListener()
getProtocolNameback to summary
public abstract String getProtocolName()

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

getSourceWindowback to summary
public abstract long getSourceWindow()
isDragOverComponentback to summary
public abstract boolean isDragOverComponent()
isProtocolSupportedback to summary
public abstract boolean isProtocolSupported(long window)
isXEmbedSupportedback to summary
public abstract boolean isXEmbedSupported()
postProcessClientMessageback to summary
private void postProcessClientMessage(XClientMessageEvent xclient, boolean processed, int type)
processClientMessageback to summary
public final boolean processClientMessage(XClientMessageEvent xclient)
processClientMessageImplback to summary
protected abstract boolean processClientMessageImpl(XClientMessageEvent xclient)
putEmbedderRegistryEntryback to summary
protected final void putEmbedderRegistryEntry(long embedder, boolean overridden, int version, long proxy)
registerDropTargetback to summary
public abstract void registerDropTarget(long window)
registerEmbeddedDropSiteback to summary
public abstract void registerEmbeddedDropSite(long embedded)
registerEmbedderDropSiteback to summary
public abstract void registerEmbedderDropSite(long window)
removeEmbedderRegistryEntryback to summary
protected final void removeEmbedderRegistryEntry(long embedder)
sendDropDoneback to summary
public abstract boolean sendDropDone(long ctxt, boolean success, int dropAction)
sendEnterMessageToToplevelback to summary
protected abstract void sendEnterMessageToToplevel(long toplevel, XClientMessageEvent xclient)
sendLeaveMessageToToplevelback to summary
protected abstract void sendLeaveMessageToToplevel(long toplevel, XClientMessageEvent xclient)
sendResponseback to summary
public abstract boolean sendResponse(long ctxt, int eventID, int action)
unregisterDropTargetback to summary
public abstract void unregisterDropTarget(long window)
unregisterEmbeddedDropSiteback to summary
public final void unregisterEmbeddedDropSite(long embedded)
unregisterEmbedderDropSiteback to summary
public abstract void unregisterEmbedderDropSite(long window)
sun.awt.X11 back to summary

protected final Class XDropTargetProtocol.EmbedderRegistryEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final boolean
private final long
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
EmbedderRegistryEntry(boolean overridden, int version, long proxy)

Method Summary

Modifier and TypeMethod and Description
public long
public int
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

overriddenback to summary
private final boolean overridden
proxyback to summary
private final long proxy
versionback to summary
private final int version

Constructor Detail

EmbedderRegistryEntryback to summary
pack-priv EmbedderRegistryEntry(boolean overridden, int version, long proxy)

Method Detail

getProxyback to summary
public long getProxy()
getVersionback to summary
public int getVersion()
isOverridenback to summary
public boolean isOverriden()