public class TreePathListTransferable extends Object implements Transferable
| Modifier and Type | Field and Description |
|---|---|
static DataFlavor |
FLAVOR |
static DataFlavor[] |
FLAVORS |
| Constructor and Description |
|---|
TreePathListTransferable(List<TreePath> paths) |
TreePathListTransferable(TreePath... paths) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCopiedPath(TreePath path) |
void |
addMovedPath(TreePath path) |
Set<TreePath> |
getCopiedPaths() |
Set<TreePath> |
getMovedPaths() |
List<TreePath> |
getPaths() |
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isCopied(TreePath path) |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
boolean |
isMoved(TreePath path) |
boolean |
isSameParent(TreePath path) |
void |
reset() |
void |
setSameParent(TreePath path) |
public static final DataFlavor FLAVOR
public static final DataFlavor[] FLAVORS
public TreePathListTransferable(TreePath... paths)
public void addCopiedPath(TreePath path)
public void addMovedPath(TreePath path)
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData in interface TransferableUnsupportedFlavorExceptionIOExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isCopied(TreePath path)
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferablepublic boolean isMoved(TreePath path)
public boolean isSameParent(TreePath path)
public void reset()
public void setSameParent(TreePath path)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.