summaryrefslogtreecommitdiff
path: root/java/awt/datatransfer/DataFlavor.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-11-07 08:50:37 +0000
committerMichael Koch <konqueror@gmx.de>2002-11-07 08:50:37 +0000
commit6e7a5fca47a04a307fe39a9a7cef8e00b9c6dc4e (patch)
tree4e275263e67d0e6cdbb1619aa9e478eb908ab874 /java/awt/datatransfer/DataFlavor.java
parent0b3a2fd392edd5e25d40b47067cae5c5e0ff983c (diff)
downloadclasspath-6e7a5fca47a04a307fe39a9a7cef8e00b9c6dc4e.tar.gz
2002-11-07 Michael Koch <konqueror@gmx.de>
* java/awt/color/ICC_Profile.java: Added missing constants. * java/awt/color/ICC_ColorSpace.java (getMinValue): Added dummy implementation. (getMaxValue): Added dummy implementation. * java/awt/datatransfer/DataFlavor.java (imageFlavor): Added. (isMimeTypeEqual): Must be final. (getDefaultRepresentationClass): Must be non-static. (getDefaultRepresentationClassAsString): Must be non-static. * java/awt/dnd/DragSourceContext.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/dnd/DragSourceListener.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/font/TextHitInfo.java (toString): Added stubbed implementation. * java/awt/geom/PathIterator.java: The constants must be static. * java/awt/image/VolatileImage.java (IMAGE_INCOMPATIBLE): Fixed typo. * java/awt/image/renderable/RenderableImage.java (HINTS_OBSERVED): Must be static. * java/beans/BeanInfo.java: Constants must be final.
Diffstat (limited to 'java/awt/datatransfer/DataFlavor.java')
-rw-r--r--java/awt/datatransfer/DataFlavor.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/java/awt/datatransfer/DataFlavor.java b/java/awt/datatransfer/DataFlavor.java
index d33a3eb1c..85f6ae5d4 100644
--- a/java/awt/datatransfer/DataFlavor.java
+++ b/java/awt/datatransfer/DataFlavor.java
@@ -88,6 +88,8 @@ public static final DataFlavor stringFlavor;
*/
public static final DataFlavor javaFileListFlavor;
+public static final DataFlavor imageFlavor;
+
/**
* This is the MIME type used for transferring a serialized object.
* The representation class is the type of object be deserialized.
@@ -126,6 +128,10 @@ static
"Java File List");
// javaFileListFlavor.mimeType = "application/x-java-file-list";
+
+ imageFlavor
+ = new DataFlavor(java.awt.Image.class,
+ "Java Image");
}
/*************************************************************************/
@@ -499,7 +505,7 @@ setHumanPresentableName(String humanPresentableName)
* @return <code>true</code> if the MIME type is equal to this object's
* MIME type, <code>false</code> otherwise.
*/
-public boolean
+public final boolean
isMimeTypeEqual(String mimeType)
{
// FIXME: Need to handle default attributes and parameters
@@ -862,7 +868,7 @@ getTextPlainUnicodeFlavor()
*
* @since 1.3
*/
-public static final Class
+public final Class
getDefaultRepresentationClass()
{
return(java.io.InputStream.class);
@@ -872,7 +878,7 @@ getDefaultRepresentationClass()
/**
* XXX - Currently returns <code>java.io.InputStream</code>.
*/
-public static final String
+public final String
getDefaultRepresentationClassAsString()
{
return(getDefaultRepresentationClass().getName());