|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.beans.dts.plugin.transferable.AbstractTransferable
public abstract class AbstractTransferable
All transferable objects should normally extend this class. It implements
getTransferDataFlavors
and isDataFlavorSupported
methods of
Transferable interface.
setTransferDataFlavors
to set the
supporting DataFlavor for the transferable.
Copyright: Copyright (c) 2004
Company: Apelon, Inc.
Constructor Summary | |
---|---|
AbstractTransferable()
|
Method Summary | |
---|---|
protected static DataFlavor |
createConstant(Class rc,
String prn)
Copied from DataFlavor class. |
DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
Returns whether or not the specified data flavor is supported for this object. |
void |
setTransferDataFlavors(DataFlavor[] transferDataFlavors)
Sets the DataFlavors that are supported by this Transferable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.datatransfer.Transferable |
---|
getTransferData |
Constructor Detail |
---|
public AbstractTransferable()
Method Detail |
---|
protected static DataFlavor createConstant(Class rc, String prn)
rc
- representation classprn
- Human-readable String
public void setTransferDataFlavors(DataFlavor[] transferDataFlavors)
transferDataFlavors
- public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- the requested flavor for the data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |