T - the pdo typepublic class PdoTransferable<T extends PersistentDomainObject<T>> extends Object implements Transferable, ClipboardOwner
PersistentDomainObjects or lists of.| Modifier and Type | Field and Description |
|---|---|
static DataFlavor |
PDO_FLAVOR
flavor for a single
PersistentDomainObject |
static DataFlavor |
PDO_LIST_FLAVOR
flavor for a list of
PersistentDomainObjects |
| Constructor and Description |
|---|
PdoTransferable(Collection<?> objects)
Creates a transferable for a collection of objects.
Non-PDOs are skipped. |
PdoTransferable(T pdo)
Creates a transfertable for an object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getTransferData(DataFlavor flv) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flv) |
void |
lostOwnership(Clipboard clipboard,
Transferable contents) |
public static final DataFlavor PDO_FLAVOR
PersistentDomainObjectpublic static final DataFlavor PDO_LIST_FLAVOR
PersistentDomainObjectspublic PdoTransferable(T pdo)
pdo - the PersistentDomainObjectpublic PdoTransferable(Collection<?> objects)
objects - the itemspublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flv)
isDataFlavorSupported in interface Transferablepublic Object getTransferData(DataFlavor flv) throws UnsupportedFlavorException
getTransferData in interface TransferableUnsupportedFlavorExceptionpublic void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership in interface ClipboardOwnerTentackle - a domain driven enterprise framework