Package com.vaadin.event
Interface Transferable
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DragAndDropWrapper.WrapperTransferable,TransferableImpl
@Deprecated public interface Transferable extends java.io.SerializableDeprecated.Since 8.1 replaced byDragSourceExtension.setDataTransferData(String, String),DropEvent.getDataTransferData(String).Transferable wraps the data that is to be imported into another component. Currently Transferable is only used for drag and drop.- Since:
- 6.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetData(java.lang.String dataFlavor)Deprecated.Returns the data from Transferable by its data flavor (aka data type).java.util.Collection<java.lang.String>getDataFlavors()Deprecated.ComponentgetSourceComponent()Deprecated.voidsetData(java.lang.String dataFlavor, java.lang.Object value)Deprecated.Stores data of given data flavor to Transferable.
-
-
-
Method Detail
-
getData
java.lang.Object getData(java.lang.String dataFlavor)
Deprecated.Returns the data from Transferable by its data flavor (aka data type). Data types can be any string keys, but MIME types like "text/plain" are commonly used.Note, implementations of
Transferableoften provide a better typed API for accessing data.- Parameters:
dataFlavor- the data flavor to be returned from Transferable- Returns:
- the data stored in the Transferable or null if Transferable contains no data for given data flavour
-
setData
void setData(java.lang.String dataFlavor, java.lang.Object value)Deprecated.Stores data of given data flavor to Transferable. Possibly existing value of the same data flavor will be replaced.- Parameters:
dataFlavor- the data flavorvalue- the new value of the data flavor
-
getDataFlavors
java.util.Collection<java.lang.String> getDataFlavors()
Deprecated.- Returns:
- a collection of data flavors ( data types ) available in this Transferable
-
getSourceComponent
Component getSourceComponent()
Deprecated.- Returns:
- the component that created the Transferable or null if the source component is unknown
-
-