| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| private static DataFlavor[] | |
| protected String | |
| private static DataFlavor[] | |
| private static DataFlavor[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private InputStream | |
| protected String | |
| protected String | |
| protected Object | |
| protected DataFlavor[] | getRicherFlavors()
Some subclasses will have flavors that are more descriptive than HTML or plain text. |
| public Object | getTransferData(DataFlavor
the requested flavor for the data flavor)Implements java. Returns an object which represents the data to be transferred. |
| public DataFlavor[] | Returns: an array of data flavors in which this data can be transferredImplements java. Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive). |
| public boolean | Returns: boolean indicating whether or not the data flavor is supportedthe requested flavor for the data flavor)Implements java. Returns whether or not the specified data flavor is supported for this object. |
| protected boolean | Returns: boolean indicating whether or not the data flavor is supportedthe requested flavor for the data flavor)Returns whether or not the specified data flavor is an HTML flavor that is supported. |
| protected boolean | |
| protected boolean | Returns: boolean indicating whether or not the data flavor is supportedthe requested flavor for the data flavor)Returns whether or not the specified data flavor is an plain flavor that is supported. |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: boolean indicating whether or not the data flavor is supportedthe requested flavor for the data flavor)Returns whether or not the specified data flavor is a String flavor that is supported. |
| htmlData | back to summary |
|---|---|
| protected String htmlData | |
| htmlFlavors | back to summary |
|---|---|
| private static DataFlavor[] htmlFlavors | |
| plainData | back to summary |
|---|---|
| protected String plainData | |
| plainFlavors | back to summary |
|---|---|
| private static DataFlavor[] plainFlavors | |
| stringFlavors | back to summary |
|---|---|
| private static DataFlavor[] stringFlavors | |
| BasicTransferable | back to summary |
|---|---|
| public BasicTransferable(String plainData, String htmlData) | |
| createInputStream | back to summary |
|---|---|
| private InputStream createInputStream(DataFlavor flavor, String data) throws IOException, UnsupportedFlavorException | |
| getHTMLData | back to summary |
|---|---|
| protected String getHTMLData() Fetch the data in a text/html format | |
| getPlainData | back to summary |
|---|---|
| protected String getPlainData() Fetch the data in a text/plain format. | |
| getRicherData | back to summary |
|---|---|
| protected Object getRicherData(DataFlavor flavor) throws UnsupportedFlavorException | |
| getRicherFlavors | back to summary |
|---|---|
| protected DataFlavor[] getRicherFlavors() Some subclasses will have flavors that are more descriptive than HTML or plain text. If this method returns a non-null value, it will be placed at the start of the array of supported flavors. | |
| getTransferData | back to summary |
|---|---|
| public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException Implements java. Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.
| |
| getTransferDataFlavors | back to summary |
|---|---|
| public DataFlavor[] getTransferDataFlavors() Implements java. Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).
| |
| isDataFlavorSupported | back to summary |
|---|---|
| public boolean isDataFlavorSupported(DataFlavor flavor) Implements java. Returns whether or not the specified data flavor is supported for this object.
| |
| isHTMLFlavor | back to summary |
|---|---|
| protected boolean isHTMLFlavor(DataFlavor flavor) Returns whether or not the specified data flavor is an HTML flavor that is supported.
| |
| isHTMLSupported | back to summary |
|---|---|
| protected boolean isHTMLSupported() Should the HTML flavors be offered? If so, the method getHTMLData should be implemented to provide something reasonable. | |
| isPlainFlavor | back to summary |
|---|---|
| protected boolean isPlainFlavor(DataFlavor flavor) Returns whether or not the specified data flavor is an plain flavor that is supported.
| |
| isPlainSupported | back to summary |
|---|---|
| protected boolean isPlainSupported() Should the plain text flavors be offered? If so, the method getPlainData should be implemented to provide something reasonable. | |
| isRicherFlavor | back to summary |
|---|---|
| protected boolean isRicherFlavor(DataFlavor flavor) | |
| isStringFlavor | back to summary |
|---|---|
| protected boolean isStringFlavor(DataFlavor flavor) Returns whether or not the specified data flavor is a String flavor that is supported.
| |