Class PluginTransferData


  • public class PluginTransferData
    extends java.lang.Object
    Record for transferring data during a drag and drop operation between different plug-ins. This object contains an extension identifier and a block of bytes. When the drop occurs, the data is interpreted by an action defined in the specified extension.

    Clients using PluginTransfer should create an instance to contain the drop data.

    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginTransferData​(java.lang.String extensionId, byte[] data)
      Creates a new record for the given extension id and data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()
      Returns the data being transferred.
      java.lang.String getExtensionId()
      Returns the id of the extension that will provide the drop action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginTransferData

        public PluginTransferData​(java.lang.String extensionId,
                                  byte[] data)
        Creates a new record for the given extension id and data.
        Parameters:
        extensionId - the extension id
        data - the data to transfer
    • Method Detail

      • getData

        public byte[] getData()
        Returns the data being transferred.
        Returns:
        the data
      • getExtensionId

        public java.lang.String getExtensionId()
        Returns the id of the extension that will provide the drop action.
        Returns:
        the extension id