| java.lang.Object sun.awt.X11.XDragSourceProtocol
All known Subclasses: sun.awt.X11.XDnDDragSourceProtocol, sun.awt.X11.MotifDnDDragSourceProtocol,
XDragSourceProtocol | abstract class XDragSourceProtocol (Code) | | An abstract class for drag protocols on X11 systems.
Contains protocol-independent drag source code.
since: 1.5 |
Inner Class :public static class TargetWindowInfo | |
Method Summary | |
final public boolean | attachTargetWindow(long window, long time) | public void | cleanup() Terminates the current drag operation (if any) and resets the internal
state of this object. | public void | cleanupTargetInfo() Clears the information on the current drop target. | final protected void | finalizeDrop() | static long | getDragSourceWindow() | final protected XDragSourceProtocolListener | getProtocolListener() | abstract public String | getProtocolName() Returns the protocol name. | final protected int | getTargetProtocolVersion() | final protected long | getTargetProxyWindow() | final protected long | getTargetWindow() | abstract public TargetWindowInfo | getTargetWindowInfo(long window) | final public void | initializeDrag(int actions, Transferable contents, Map formatMap, long[] formats) Initalizes a drag operation with the specified supported drop actions,
contents and data formats. | abstract protected void | initializeDragImpl(int actions, Transferable contents, Map formatMap, long[] formats) | final public void | initiateDrop(int xRoot, int yRoot, int sourceAction, int sourceActions, long time) | abstract public boolean | processClientMessage(XClientMessageEvent xclient) Processes the specified client message event. | abstract public boolean | processProxyModeEvent(XClientMessageEvent xclient, long sourceWindow) | abstract protected void | sendDropMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time) | abstract public void | sendEnterMessage(long[] formats, int sourceAction, int sourceActions, long time) | abstract public void | sendLeaveMessage(long time) | abstract public void | sendMoveMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time) |
attachTargetWindow | final public boolean attachTargetWindow(long window, long time)(Code) | | |
cleanup | public void cleanup()(Code) | | Terminates the current drag operation (if any) and resets the internal
state of this object.
throws: XException - if some X call failed. |
cleanupTargetInfo | public void cleanupTargetInfo()(Code) | | Clears the information on the current drop target.
throws: XException - if some X call failed. |
finalizeDrop | final protected void finalizeDrop()(Code) | | |
getDragSourceWindow | static long getDragSourceWindow()(Code) | | |
getProtocolName | abstract public String getProtocolName()(Code) | | Returns the protocol name. The protocol name cannot be null.
|
getTargetProtocolVersion | final protected int getTargetProtocolVersion()(Code) | | |
getTargetProxyWindow | final protected long getTargetProxyWindow()(Code) | | |
getTargetWindow | final protected long getTargetWindow()(Code) | | |
getTargetWindowInfo | abstract public TargetWindowInfo getTargetWindowInfo(long window)(Code) | | |
initializeDrag | final public void initializeDrag(int actions, Transferable contents, Map formatMap, long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException(Code) | | Initalizes a drag operation with the specified supported drop actions,
contents and data formats.
Parameters: actions - a bitwise mask of DnDConstants that representthe supported drop actions. Parameters: contents - the contents for the drag operation. Parameters: formats - an array of Atoms that represent the supported data formats. Parameters: formats - an array of Atoms that represent the supported data formats. throws: InvalidDnDOperationException - if a drag operation is alreadyinitialized. throws: IllegalArgumentException - if some argument has invalid value. throws: XException - if some X call failed. |
initiateDrop | final public void initiateDrop(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)(Code) | | |
processClientMessage | abstract public boolean processClientMessage(XClientMessageEvent xclient) throws XException(Code) | | Processes the specified client message event.
|
processProxyModeEvent | abstract public boolean processProxyModeEvent(XClientMessageEvent xclient, long sourceWindow)(Code) | | |
sendDropMessage | abstract protected void sendDropMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)(Code) | | |
sendEnterMessage | abstract public void sendEnterMessage(long[] formats, int sourceAction, int sourceActions, long time)(Code) | | |
sendLeaveMessage | abstract public void sendLeaveMessage(long time)(Code) | | |
sendMoveMessage | abstract public void sendMoveMessage(int xRoot, int yRoot, int sourceAction, int sourceActions, long time)(Code) | | |
|
|