antsnest.datatransfer
Class AntAttributeTransferable
java.lang.Object
antsnest.datatransfer.AntsNestTransferable
antsnest.datatransfer.AntAttributeTransferable
- All Implemented Interfaces:
- Transferable
public class AntAttributeTransferable
- extends AntsNestTransferable
Defines how an Ant attribute is transfered
- Author:
- Chris Clohosy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntAttributeTransferable
public AntAttributeTransferable(AntAttribute attribute)
- Constructs the new transferable
- Parameters:
attribute - the attribute to transfer
getTransferData
public Object getTransferData(DataFlavor usedFlavor)
throws UnsupportedFlavorException
- Gets an object to be used in the transfer
- Specified by:
getTransferData in interface Transferable- Specified by:
getTransferData in class AntsNestTransferable
- Parameters:
usedFlavor - the flavor being used
- Returns:
- an Object, the object to transfer
- Throws:
UnsupportedFlavorException - if an unsupported flavor is used
getFlavor
public static DataFlavor getFlavor()
- Gets the data flavor used in this transferable
- Returns:
- a DataFlavor the data flavor used