summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/awt/dnd
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/awt/dnd')
-rw-r--r--libjava/classpath/java/awt/dnd/DragGestureRecognizer.java4
-rw-r--r--libjava/classpath/java/awt/dnd/DragSourceContext.java12
-rw-r--r--libjava/classpath/java/awt/dnd/DropTarget.java4
-rw-r--r--libjava/classpath/java/awt/dnd/DropTargetContext.java4
-rw-r--r--libjava/classpath/java/awt/dnd/DropTargetEvent.java2
5 files changed, 20 insertions, 6 deletions
diff --git a/libjava/classpath/java/awt/dnd/DragGestureRecognizer.java b/libjava/classpath/java/awt/dnd/DragGestureRecognizer.java
index 07b822e7a68..37fde917836 100644
--- a/libjava/classpath/java/awt/dnd/DragGestureRecognizer.java
+++ b/libjava/classpath/java/awt/dnd/DragGestureRecognizer.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.awt.dnd;
+import gnu.classpath.NotImplementedException;
+
import java.awt.Component;
import java.awt.Point;
import java.awt.event.InputEvent;
@@ -126,6 +128,7 @@ public abstract class DragGestureRecognizer implements Serializable
}
public void resetRecognizer()
+ throws NotImplementedException
{
throw new Error("not implemented");
}
@@ -152,6 +155,7 @@ public abstract class DragGestureRecognizer implements Serializable
}
protected void fireDragGestureRecognized(int dragAction, Point p)
+ throws NotImplementedException
{
throw new Error("not implemented");
}
diff --git a/libjava/classpath/java/awt/dnd/DragSourceContext.java b/libjava/classpath/java/awt/dnd/DragSourceContext.java
index 2cf0d6d0bc9..88607b090ea 100644
--- a/libjava/classpath/java/awt/dnd/DragSourceContext.java
+++ b/libjava/classpath/java/awt/dnd/DragSourceContext.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package java.awt.dnd;
+import gnu.classpath.NotImplementedException;
+
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Image;
@@ -86,6 +88,7 @@ public class DragSourceContext
DragGestureEvent trigger, Cursor cursor,
Image image, Point offset, Transferable trans,
DragSourceListener dsl)
+ throws NotImplementedException
{
if (peer == null
|| trigger == null)
@@ -130,6 +133,7 @@ public class DragSourceContext
}
public void setCursor (Cursor cursor)
+ throws NotImplementedException
{
this.cursor = cursor;
// FIXME: Check if we need to do more here
@@ -162,30 +166,37 @@ public class DragSourceContext
}
public void transferablesFlavorsChanged()
+ throws NotImplementedException
{
}
public void dragEnter(DragSourceDragEvent e)
+ throws NotImplementedException
{
}
public void dragOver(DragSourceDragEvent e)
+ throws NotImplementedException
{
}
public void dragExit(DragSourceEvent e)
+ throws NotImplementedException
{
}
public void dropActionChanged(DragSourceDragEvent e)
+ throws NotImplementedException
{
}
public void dragDropEnd(DragSourceDropEvent e)
+ throws NotImplementedException
{
}
public void dragMouseMoved(DragSourceDragEvent e)
+ throws NotImplementedException
{
}
@@ -195,6 +206,7 @@ public class DragSourceContext
}
protected void updateCurrentCursor(int dropOp, int targetAct, int status)
+ throws NotImplementedException
{
}
} // class DragSourceContext
diff --git a/libjava/classpath/java/awt/dnd/DropTarget.java b/libjava/classpath/java/awt/dnd/DropTarget.java
index 9fd7ef896fb..b0d4c2ae7a1 100644
--- a/libjava/classpath/java/awt/dnd/DropTarget.java
+++ b/libjava/classpath/java/awt/dnd/DropTarget.java
@@ -61,9 +61,7 @@ public class DropTarget
*/
private static final long serialVersionUID = -6283860791671019047L;
- /** @specnote According to the online documentation, this is
- * protected, but in reality it is public. */
- public static class DropTargetAutoScroller
+ protected static class DropTargetAutoScroller
implements ActionListener
{
private Component component;
diff --git a/libjava/classpath/java/awt/dnd/DropTargetContext.java b/libjava/classpath/java/awt/dnd/DropTargetContext.java
index d1fb66e6f35..19e27a9007f 100644
--- a/libjava/classpath/java/awt/dnd/DropTargetContext.java
+++ b/libjava/classpath/java/awt/dnd/DropTargetContext.java
@@ -54,9 +54,7 @@ public class DropTargetContext implements Serializable
{
static final long serialVersionUID = -634158968993743371L;
- /** @specnote According to the online documentation, this is
- * protected, but in reality it is public. */
- public class TransferableProxy implements Transferable
+ protected class TransferableProxy implements Transferable
{
protected boolean isLocal;
protected Transferable transferable;
diff --git a/libjava/classpath/java/awt/dnd/DropTargetEvent.java b/libjava/classpath/java/awt/dnd/DropTargetEvent.java
index 56a4d481a16..f75f756d037 100644
--- a/libjava/classpath/java/awt/dnd/DropTargetEvent.java
+++ b/libjava/classpath/java/awt/dnd/DropTargetEvent.java
@@ -41,6 +41,8 @@ import java.util.EventObject;
public class DropTargetEvent extends EventObject
{
+ private static final long serialVersionUID = 2821229066521922993L;
+
protected DropTargetContext context;
public DropTargetEvent (DropTargetContext context)
OpenPOWER on IntegriCloud