com.vaadin.client.ui.dd.

Class VTransferable

    • Constructor Detail

      • VTransferable

        public VTransferable()
        Deprecated.
    • Method Detail

      • getDragSource

        public ComponentConnector getDragSource()
        Deprecated.

        Returns the component from which the transferable is created (e.g. a tree which node is dragged).

        Returns:

        the component

      • setDragSource

        public void setDragSource​(ComponentConnector component)
        Deprecated.

        Sets the component currently being dragged or from which the transferable is created (e.g. a tree which node is dragged).

        The server side counterpart of the component may implement DragSource interface if it wants to translate or complement the server side instance of this Transferable.

        Parameters:

        component - the component to set

      • getData

        public Object getData​(String dataFlavor)
        Deprecated.

        Returns previously saved data that is referred to by the given identifier.

        Parameters:

        dataFlavor - the identifier for the data object

        Returns:

        the data object, or null if not found

        See Also:

        setData(String, Object)

      • setData

        public void setData​(String dataFlavor,
                            Object value)
        Deprecated.

        Stores any type of named data that can be useful during the DnD operation.

        Parameters:

        dataFlavor - the identifier for the data object, should not be null

        value - the data to store, should not be null

      • getDataFlavors

        public Collection<String> getDataFlavors()
        Deprecated.

        Returns a collection of stored identifiers that each correspond with one stored data object.

        Returns:

        the collection of identifiers, can be empty if no data has been stored yet

        See Also:

        setData(String, Object)