org.virtualbox_6_0
Class IDnDSource

java.lang.Object
  extended by org.virtualbox_6_0.IUnknown
      extended by org.virtualbox_6_0.IDnDBase
          extended by 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}


Field Summary
 
Fields inherited from class org.virtualbox_6_0.IUnknown
obj, objMgr, port
 
Constructor Summary
IDnDSource(java.lang.String wrapped, org.virtualbox_6_0.ObjectRefManager objMgr, org.virtualbox_6_0.jaxws.VboxPortType port)
           
 
Method Summary
 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.
 IProgress drop(java.lang.String format, DnDAction action)
          Informs the source that a drop event occurred for a pending drag and drop operation.
static IDnDSource queryInterface(IUnknown obj)
           
 byte[] receiveData()
          Receive the data of a previously drag and drop event from the source.
 
Methods inherited from class org.virtualbox_6_0.IDnDBase
addFormats, getFormats, getProtocolVersion, isFormatSupported, removeFormats
 
Methods inherited from class org.virtualbox_6_0.IUnknown
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDnDSource

public IDnDSource(java.lang.String wrapped,
                  org.virtualbox_6_0.ObjectRefManager objMgr,
                  org.virtualbox_6_0.jaxws.VboxPortType port)
Method Detail

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_ERRORVMM 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_ERRORVMM 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_ERRORVMM device is not available.