public class IDnDTarget extends IDnDBase
Constructor and Description |
---|
IDnDTarget(java.lang.String wrapped,
org.virtualbox_6_1.ObjectRefManager objMgr,
org.virtualbox_6_1.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
cancel()
Requests cancelling the current operation.
|
DnDAction |
drop(java.lang.Long screenId,
java.lang.Long x,
java.lang.Long y,
DnDAction defaultAction,
java.util.List<DnDAction> allowedActions,
java.util.List<java.lang.String> formats,
Holder<java.lang.String> format)
Informs the target about a drop event.
|
DnDAction |
enter(java.lang.Long screenId,
java.lang.Long y,
java.lang.Long x,
DnDAction defaultAction,
java.util.List<DnDAction> allowedActions,
java.util.List<java.lang.String> formats)
Informs the target about a drag and drop enter event.
|
void |
leave(java.lang.Long screenId)
Informs the target about a drag and drop leave event.
|
DnDAction |
move(java.lang.Long screenId,
java.lang.Long x,
java.lang.Long y,
DnDAction defaultAction,
java.util.List<DnDAction> allowedActions,
java.util.List<java.lang.String> formats)
Informs the target about a drag and drop move event.
|
static IDnDTarget |
queryInterface(IUnknown obj) |
IProgress |
sendData(java.lang.Long screenId,
java.lang.String format,
byte[] data)
Initiates sending data to the target.
|
addFormats, getFormats, getProtocolVersion, isFormatSupported, removeFormats
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public IDnDTarget(java.lang.String wrapped, org.virtualbox_6_1.ObjectRefManager objMgr, org.virtualbox_6_1.jaxws.VboxPortType port)
public static IDnDTarget queryInterface(IUnknown obj)
public DnDAction enter(java.lang.Long screenId, java.lang.Long y, java.lang.Long x, DnDAction defaultAction, java.util.List<DnDAction> allowedActions, java.util.List<java.lang.String> formats)
screenId
- The screen ID where the drag and drop event occurred.y
- Y-position of the event.x
- X-position of the event.defaultAction
- The default action to use.allowedActions
- The actions which are allowed.formats
- The supported MIME types.VBOX_E_VM_ERROR | VMM device is not available. |
public DnDAction move(java.lang.Long screenId, java.lang.Long x, java.lang.Long y, DnDAction defaultAction, java.util.List<DnDAction> allowedActions, java.util.List<java.lang.String> formats)
screenId
- The screen ID where the drag and drop event occurred.x
- X-position of the event.y
- Y-position of the event.defaultAction
- The default action to use.allowedActions
- The actions which are allowed.formats
- The supported MIME types.VBOX_E_VM_ERROR | VMM device is not available. |
public void leave(java.lang.Long screenId)
screenId
- The screen ID where the drag and drop event occurred.
Expected result codes:
VBOX_E_VM_ERROR | VMM device is not available. |
public DnDAction drop(java.lang.Long screenId, java.lang.Long x, java.lang.Long y, DnDAction defaultAction, java.util.List<DnDAction> allowedActions, java.util.List<java.lang.String> formats, Holder<java.lang.String> format)
screenId
- The screen ID where the Drag and Drop event occurred.x
- X-position of the event.y
- Y-position of the event.defaultAction
- The default action to use.allowedActions
- The actions which are allowed.formats
- The supported MIME types.format
- The resulting format of this event.VBOX_E_VM_ERROR | VMM device is not available. |
public IProgress sendData(java.lang.Long screenId, java.lang.String format, byte[] data)
screenId
- The screen ID where the drag and drop event occurred.format
- The MIME type the data is in.data
- The actual data.VBOX_E_VM_ERROR | VMM device is not available. |
public java.lang.Boolean cancel()
VBOX_E_VM_ERROR | VMM device is not available. |