88 |
*/ |
*/ |
89 |
public static final DataFlavor javaFileListFlavor; |
public static final DataFlavor javaFileListFlavor; |
90 |
|
|
91 |
|
public static final DataFlavor imageFlavor; |
92 |
|
|
93 |
/** |
/** |
94 |
* This is the MIME type used for transferring a serialized object. |
* This is the MIME type used for transferring a serialized object. |
95 |
* The representation class is the type of object be deserialized. |
* The representation class is the type of object be deserialized. |
128 |
"Java File List"); |
"Java File List"); |
129 |
|
|
130 |
// javaFileListFlavor.mimeType = "application/x-java-file-list"; |
// javaFileListFlavor.mimeType = "application/x-java-file-list"; |
131 |
|
|
132 |
|
imageFlavor |
133 |
|
= new DataFlavor(java.awt.Image.class, |
134 |
|
"Java Image"); |
135 |
} |
} |
136 |
|
|
137 |
/*************************************************************************/ |
/*************************************************************************/ |
505 |
* @return <code>true</code> if the MIME type is equal to this object's |
* @return <code>true</code> if the MIME type is equal to this object's |
506 |
* MIME type, <code>false</code> otherwise. |
* MIME type, <code>false</code> otherwise. |
507 |
*/ |
*/ |
508 |
public boolean |
public final boolean |
509 |
isMimeTypeEqual(String mimeType) |
isMimeTypeEqual(String mimeType) |
510 |
{ |
{ |
511 |
// FIXME: Need to handle default attributes and parameters |
// FIXME: Need to handle default attributes and parameters |
868 |
* |
* |
869 |
* @since 1.3 |
* @since 1.3 |
870 |
*/ |
*/ |
871 |
public static final Class |
public final Class |
872 |
getDefaultRepresentationClass() |
getDefaultRepresentationClass() |
873 |
{ |
{ |
874 |
return(java.io.InputStream.class); |
return(java.io.InputStream.class); |
878 |
/** |
/** |
879 |
* XXX - Currently returns <code>java.io.InputStream</code>. |
* XXX - Currently returns <code>java.io.InputStream</code>. |
880 |
*/ |
*/ |
881 |
public static final String |
public final String |
882 |
getDefaultRepresentationClassAsString() |
getDefaultRepresentationClassAsString() |
883 |
{ |
{ |
884 |
return(getDefaultRepresentationClass().getName()); |
return(getDefaultRepresentationClass().getName()); |