Class TransferHandler.TransferSupport
java.lang.Object
vaadinx.swing.TransferHandler.TransferSupport
- Enclosing class:
TransferHandler
Emulator for
TransferHandler.TransferSupport. Carries
the target component, the dragged Transferable, and (for drops)
the drop location + action negotiation. Built by the DnD bridge for drops
and by TransferHandler.importData(JComponent, Transferable) for
the paste case.-
Constructor Summary
ConstructorsConstructorDescriptionTransferSupport(Component component, Transferable transferable) Paste-shape support: not a drop, no location. -
Method Summary
Modifier and TypeMethodDescriptionThe drop/paste target component.intComponent-specific drop location, or null for a paste.intintbooleanbooleanisDrop()True when this support describes a drop (vs. a paste).voidsetDropAction(int dropAction) Chooses the action to perform amonggetSourceDropActions().voidsetShowDropLocation(boolean showDropLocation)
-
Constructor Details
-
TransferSupport
Paste-shape support: not a drop, no location.
-
-
Method Details
-
getComponent
The drop/paste target component. -
getTransferable
-
getDataFlavors
-
isDataFlavorSupported
-
isDrop
public boolean isDrop()True when this support describes a drop (vs. a paste). -
getDropLocation
Component-specific drop location, or null for a paste. -
getSourceDropActions
public int getSourceDropActions() -
getUserDropAction
public int getUserDropAction() -
getDropAction
public int getDropAction() -
setDropAction
public void setDropAction(int dropAction) Chooses the action to perform amonggetSourceDropActions(). -
setShowDropLocation
public void setShowDropLocation(boolean showDropLocation)
-