public abstract class DataBoundTransferable extends TransferableImpl
Transferable
implementations that have a Vaadin
container as a data source. The transfer is associated with an item
(identified by its Id) and optionally also a property identifier (e.g. a
table column identifier when transferring a single table cell).
The component must implement the interface Container.Viewer
.
In most cases, receivers of data transfers should depend on this class
instead of its concrete subclasses.Constructor and Description |
---|
DataBoundTransferable(Component sourceComponent,
Map<String,Object> rawVariables) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getItemId()
Returns the identifier of the item being transferred.
|
abstract Object |
getPropertyId()
Returns the optional property identifier that the transfer concerns.
|
Container |
getSourceContainer()
Returns the container data source from which the transfer occurs.
|
getData, getDataFlavors, getSourceComponent, setData
public abstract Object getItemId()
public abstract Object getPropertyId()
public Container getSourceContainer()
Container.Viewer#getContainerDataSource()
is used to obtain the
underlying container of the source component.Copyright © 2019 Vaadin Ltd. All rights reserved.