|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicTransferable
javax.swing.plaf.basic.BasicFileChooserUI.FileTransferHandler.FileTransferable
| Field Summary | |
(package private) Object[] |
fileData
|
protected String |
htmlData
|
protected String |
plainData
|
| Constructor Summary | |
(package private) |
BasicFileChooserUI.FileTransferHandler.FileTransferable(String plainData,
String htmlData,
Object[] fileData)
|
| Method Summary | |
protected String |
getHTMLData()
Fetch the data in a text/html format |
protected String |
getPlainData()
Fetch the data in a text/plain format. |
protected Object |
getRicherData(DataFlavor flavor)
The only richer format supported is the file list flavor |
protected DataFlavor[] |
getRicherFlavors()
Best format of the file chooser is DataFlavor.javaFileListFlavor. |
Object |
getTransferData(DataFlavor flavor)
Returns an object which represents the data to be transferred. |
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. |
protected boolean |
isHTMLFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an HTML flavor that is supported. |
protected boolean |
isHTMLSupported()
Should the HTML flavors be offered? |
protected boolean |
isPlainFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is an plain flavor that is supported. |
protected boolean |
isPlainSupported()
Should the plain text flavors be offered? |
protected boolean |
isRicherFlavor(DataFlavor flavor)
|
protected boolean |
isStringFlavor(DataFlavor flavor)
Returns whether or not the specified data flavor is a String flavor that is supported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
Object[] fileData
protected String plainData
protected String htmlData
| Constructor Detail |
BasicFileChooserUI.FileTransferHandler.FileTransferable(String plainData,
String htmlData,
Object[] fileData)
| Method Detail |
protected DataFlavor[] getRicherFlavors()
getRicherFlavors in class BasicTransferableprotected Object getRicherData(DataFlavor flavor)
getRicherData in class BasicTransferablepublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the requested flavor for the data
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
getTransferData in interface Transferableflavor - the requested flavor for the data
IOException - if the data is no longer available
in the requested flavor.
UnsupportedFlavorException - if the requested data flavor is
not supported.DataFlavor.getRepresentationClass()protected boolean isRicherFlavor(DataFlavor flavor)
protected boolean isHTMLFlavor(DataFlavor flavor)
flavor - the requested flavor for the data
protected boolean isHTMLSupported()
protected String getHTMLData()
protected boolean isPlainFlavor(DataFlavor flavor)
flavor - the requested flavor for the data
protected boolean isPlainSupported()
protected String getPlainData()
protected boolean isStringFlavor(DataFlavor flavor)
flavor - the requested flavor for the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||