public class CellTransferable extends Object implements Transferable, ClipboardOwner
Modifier and Type | Field and Description |
---|---|
static DataFlavor |
LOCAL_CELL_FLAVOR
The data flavor for local transfer of cells
|
static DataFlavor |
SERIAL_CELL_FLAVOR
The data flavor for serialized transfer of cells
|
Constructor and Description |
---|
CellTransferable(Cell[][] cells)
Creates a new cell transferable.
|
Modifier and Type | Method and Description |
---|---|
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
void |
lostOwnership(Clipboard clipboard,
Transferable contents) |
public static final DataFlavor LOCAL_CELL_FLAVOR
public static final DataFlavor SERIAL_CELL_FLAVOR
public CellTransferable(Cell[][] cells)
cells
- the cells to transferpublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
getTransferData
in interface Transferable
UnsupportedFlavorException
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership
in interface ClipboardOwner