public class ModelItemTransferable extends Object implements Transferable
Modifier and Type | Field and Description |
---|---|
static DataFlavor |
MODELITEM_DATAFLAVOR |
Constructor and Description |
---|
ModelItemTransferable(ModelItem path)
Constructs a transferrable tree path object for the specified path.
|
Modifier and Type | Method and Description |
---|---|
ModelItem |
getModelItem() |
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
public static final DataFlavor MODELITEM_DATAFLAVOR
public ModelItemTransferable(ModelItem path)
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public ModelItem getModelItem()
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
getTransferData
in interface Transferable
UnsupportedFlavorException
Copyright © 2019. All Rights Reserved.