dsto.dfc.swing.undo
Class EditTransferable
java.lang.Object
dsto.dfc.swing.undo.EditTransferable
- All Implemented Interfaces:
- Transferable
public class EditTransferable
- extends Object
- implements Transferable
Facilitates the dragging and dropping of a List
of UndoableEdit
s.
- Version:
- $Revision$
- Author:
- Peter J Smet, Derek Weber
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EDIT_LIST_FLAVOR
public static final DataFlavor EDIT_LIST_FLAVOR
- Note that the class that the DataFlavor is created with cannot be
List.class. It must be ArrayList.class (or possibly some other non-abstract
class).
FLAVORS
public static final DataFlavor[] FLAVORS
EditTransferable
public EditTransferable(List edits)
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interface Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interface Transferable
getTransferData
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
- Specified by:
getTransferData
in interface Transferable
- Throws:
UnsupportedFlavorException
IOException
Copyright © 2008 Commonwealth of Australia