public class FTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Constructor and Description |
---|
FTransferable(java.lang.String _plainData,
java.lang.String _htmlData) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHTMLData()
Fetch the data in a text/html format
|
java.lang.String |
getPlainData()
Fetch the data in a text/plain format.
|
java.lang.Object |
getRicherData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getRicherFlavors()
Some subclasses will have flavors that are more descriptive than HTML
or plain text.
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Returns an object which represents the data to be transferred.
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data
can be provided in.
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is supported for
this object.
|
boolean |
isHTMLFlavor(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is an HTML flavor that
is supported.
|
boolean |
isHTMLSupported()
Should the HTML flavors be offered?
|
boolean |
isPlainFlavor(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is an plain flavor that
is supported.
|
boolean |
isPlainSupported()
Should the plain text flavors be offered?
|
boolean |
isRicherFlavor(java.awt.datatransfer.DataFlavor flavor) |
boolean |
isStringFlavor(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is a String flavor that
is supported.
|
public FTransferable(java.lang.String _plainData, java.lang.String _htmlData)
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
flavor
- the requested flavor for the datapublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData
in interface java.awt.datatransfer.Transferable
flavor
- the requested flavor for the dataIOException
- if the data is no longer available
in the requested flavor.UnsupportedFlavorException
- if the requested data flavor is
not supported.DataFlavor#getRepresentationClass
public boolean isRicherFlavor(java.awt.datatransfer.DataFlavor flavor)
public java.awt.datatransfer.DataFlavor[] getRicherFlavors()
public java.lang.Object getRicherData(java.awt.datatransfer.DataFlavor flavor)
public boolean isHTMLFlavor(java.awt.datatransfer.DataFlavor flavor)
flavor
- the requested flavor for the datapublic boolean isHTMLSupported()
public java.lang.String getHTMLData()
public boolean isPlainFlavor(java.awt.datatransfer.DataFlavor flavor)
flavor
- the requested flavor for the datapublic boolean isPlainSupported()
public java.lang.String getPlainData()
public boolean isStringFlavor(java.awt.datatransfer.DataFlavor flavor)
flavor
- the requested flavor for the dataCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.