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

pack-priv final Class XDropTargetRegistry

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .HashMap, .HashSet, .Iterator, .List, sun.util.logging.PlatformLogger, java.awt.Point

The class responsible for registration/deregistration of drop sites.
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final long
private final HashMap<Long, Runnable>
private final HashMap<Long, XDropTargetRegistry.EmbeddedDropSiteEntry>
private static final PlatformLogger
private static final boolean
private static final XDropTargetRegistry
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
addDelayedRegistrationEntry(final long window)

Delayed drop site registration

pack-priv static long
public long
getEmbeddedDropSite(long embedder, int x, int y)

pack-priv static XDropTargetRegistry
private long
getToplevelWindow(long window)

Returns the XID of the topmost window with WM_STATE set in the ancestor hierarchy of the specified window or 0 if none found.

public void
registerDropSite(long window)

private void
registerEmbeddedDropSite(long toplevel, long window)

private XDropTargetRegistry.EmbeddedDropSiteEntry
registerEmbedderDropSite(long embedder)

private void
registerProtocols(long embedder, boolean protocols, List<XDropTargetProtocol> supportedProtocols)

public void
registerXEmbedClient(long canvasWindow, long clientWindow)

private void
public void
unregisterDropSite(long window)

private void
unregisterEmbeddedDropSite(long toplevel, long window)

private void
public void
unregisterXEmbedClient(long canvasWindow, long clientWindow)

public void
updateEmbedderDropSite(long embedder)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DELAYED_REGISTRATION_PERIODback to summary
private static final long DELAYED_REGISTRATION_PERIOD
delayedRegistrationMapback to summary
private final HashMap<Long, Runnable> delayedRegistrationMap
embeddedDropSiteRegistryback to summary
private final HashMap<Long, XDropTargetRegistry.EmbeddedDropSiteEntry> embeddedDropSiteRegistry
loggerback to summary
private static final PlatformLogger logger
NON_XEMBED_PROTOCOLSback to summary
private static final boolean NON_XEMBED_PROTOCOLS
theInstanceback to summary
private static final XDropTargetRegistry theInstance
XEMBED_PROTOCOLSback to summary
private static final boolean XEMBED_PROTOCOLS

Constructor Detail

XDropTargetRegistryback to summary
private XDropTargetRegistry()

Method Detail

addDelayedRegistrationEntryback to summary
private void addDelayedRegistrationEntry(final long window)

Delayed drop site registration

getDnDProxyWindowback to summary
pack-priv static long getDnDProxyWindow()
getEmbeddedDropSiteback to summary
public long getEmbeddedDropSite(long embedder, int x, int y)
getRegistryback to summary
pack-priv static XDropTargetRegistry getRegistry()
getToplevelWindowback to summary
private long getToplevelWindow(long window)

Returns the XID of the topmost window with WM_STATE set in the ancestor hierarchy of the specified window or 0 if none found.

registerDropSiteback to summary
public void registerDropSite(long window)
registerEmbeddedDropSiteback to summary
private void registerEmbeddedDropSite(long toplevel, long window)
registerEmbedderDropSiteback to summary
private XDropTargetRegistry.EmbeddedDropSiteEntry registerEmbedderDropSite(long embedder)
registerProtocolsback to summary
private void registerProtocols(long embedder, boolean protocols, List<XDropTargetProtocol> supportedProtocols)
registerXEmbedClientback to summary
public void registerXEmbedClient(long canvasWindow, long clientWindow)
removeDelayedRegistrationEntryback to summary
private void removeDelayedRegistrationEntry(long window)
unregisterDropSiteback to summary
public void unregisterDropSite(long window)
unregisterEmbeddedDropSiteback to summary
private void unregisterEmbeddedDropSite(long toplevel, long window)
unregisterEmbedderDropSiteback to summary
private void unregisterEmbedderDropSite(long embedder, XDropTargetRegistry.EmbeddedDropSiteEntry entry)
unregisterXEmbedClientback to summary
public void unregisterXEmbedClient(long canvasWindow, long clientWindow)
updateEmbedderDropSiteback to summary
public void updateEmbedderDropSite(long embedder)
sun.awt.X11 back to summary

private final Class XDropTargetRegistry.EmbeddedDropSiteEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final long
private final HashSet<Long>
private final long
private final List<Long>
private List<XDropTargetProtocol>

Constructor Summary

AccessConstructor and Description
public
EmbeddedDropSiteEntry(long root, long event_mask, List<XDropTargetProtocol> supportedProtocols)

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addSite(long window, boolean isXEmbedClient)

public long
public long
public long
getSite(int x, int y)

public long[]
public List<XDropTargetProtocol>
public boolean
public boolean
public synchronized void
removeSite(long window)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

event_maskback to summary
private final long event_mask
nonXEmbedClientSitesback to summary
private final HashSet<Long> nonXEmbedClientSites
rootback to summary
private final long root
sitesback to summary
private final List<Long> sites
supportedProtocolsback to summary
private List<XDropTargetProtocol> supportedProtocols

Constructor Detail

EmbeddedDropSiteEntryback to summary
public EmbeddedDropSiteEntry(long root, long event_mask, List<XDropTargetProtocol> supportedProtocols)

Method Detail

addSiteback to summary
public synchronized void addSite(long window, boolean isXEmbedClient)
getEventMaskback to summary
public long getEventMask()
getRootback to summary
public long getRoot()
getSiteback to summary
public long getSite(int x, int y)
getSitesback to summary
public long[] getSites()
getSupportedProtocolsback to summary
public List<XDropTargetProtocol> getSupportedProtocols()
hasNonXEmbedClientSitesback to summary
public boolean hasNonXEmbedClientSites()
hasSitesback to summary
public boolean hasSites()
removeSiteback to summary
public synchronized void removeSite(long window)
setSupportedProtocolsback to summary
public void setSupportedProtocols(List<XDropTargetProtocol> list)