com.vaadin.event
Class TransferableImpl
java.lang.Object
com.vaadin.event.TransferableImpl
- All Implemented Interfaces:
- Transferable, Serializable
- Direct Known Subclasses:
- DataBoundTransferable, DragAndDropWrapper.WrapperTransferable
public class TransferableImpl
- extends Object
- implements Transferable
TODO Javadoc!
- Since:
- 6.3
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferableImpl
public TransferableImpl(Component sourceComponent,
Map<String,Object> rawVariables)
getSourceComponent
public Component getSourceComponent()
- Specified by:
getSourceComponent
in interface Transferable
- Returns:
- the component that created the Transferable or null if the source
component is unknown
getData
public Object getData(String dataFlavor)
- Description copied from interface:
Transferable
- 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 Transferable
often provide a better
typed API for accessing data.
- Specified by:
getData
in interface Transferable
- 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
public void setData(String dataFlavor,
Object value)
- Description copied from interface:
Transferable
- Stores data of given data flavor to Transferable. Possibly existing value
of the same data flavor will be replaced.
- Specified by:
setData
in interface Transferable
- Parameters:
dataFlavor
- the data flavorvalue
- the new value of the data flavor
getDataFlavors
public Collection<String> getDataFlavors()
- Specified by:
getDataFlavors
in interface Transferable
- Returns:
- a collection of data flavors ( data types ) available in this
Transferable
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.