dsto.dfc.swing.undo
Class EditTransferable

java.lang.Object
  extended by 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 UndoableEdits.

Version:
$Revision$
Author:
Peter J Smet, Derek Weber

Field Summary
static DataFlavor EDIT_LIST_FLAVOR
          Note that the class that the DataFlavor is created with cannot be List.class.
static DataFlavor[] FLAVORS
           
 
Constructor Summary
EditTransferable(List edits)
           
 
Method Summary
 Object getTransferData(DataFlavor flavor)
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

EditTransferable

public EditTransferable(List edits)
Method Detail

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