org.virtualbox_6_0
Class IDnDSource
java.lang.Object
org.virtualbox_6_0.IUnknown
org.virtualbox_6_0.IDnDBase
org.virtualbox_6_0.IDnDSource
- Direct Known Subclasses:
- IGuestDnDSource
public class IDnDSource
- extends IDnDBase
Abstract interface for handling drag'n drop sources.
Interface ID: {D23A9CA3-42DA-C94B-8AEC-21968E08355D}
Constructor Summary |
IDnDSource(java.lang.String wrapped,
org.virtualbox_6_0.ObjectRefManager objMgr,
org.virtualbox_6_0.jaxws.VboxPortType port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDnDSource
public IDnDSource(java.lang.String wrapped,
org.virtualbox_6_0.ObjectRefManager objMgr,
org.virtualbox_6_0.jaxws.VboxPortType port)
queryInterface
public static IDnDSource queryInterface(IUnknown obj)
dragIsPending
public DnDAction dragIsPending(java.lang.Long screenId,
Holder<java.util.List<java.lang.String>> formats,
Holder<java.util.List<DnDAction>> allowedActions)
- Ask the source if there is any drag and drop operation pending.
If no drag and drop operation is pending currently, DnDAction_Ignore is returned.
- Parameters:
screenId
- The screen ID where the drag and drop event occurred.formats
- On return the supported mime types.allowedActions
- On return the actions which are allowed.
- Returns:
- On return the default action to use.
Expected result codes:
VBOX_E_VM_ERROR | VMM device is not available. |
drop
public IProgress drop(java.lang.String format,
DnDAction action)
- Informs the source that a drop event occurred for a pending
drag and drop operation.
- Parameters:
format
- The mime type the data must be in.action
- The action to use.
- Returns:
- Progress object to track the operation completion.
Expected result codes:
VBOX_E_VM_ERROR | VMM device is not available. |
receiveData
public byte[] receiveData()
- Receive the data of a previously drag and drop event from the source.
- Returns:
- The actual data.
Expected result codes:
VBOX_E_VM_ERROR | VMM device is not available. |