提交 400e3195 编写于 作者: Y yan

8025114: Eliminate doclint errors in java.awt.dnd package javadoc

Reviewed-by: serb, alexsch
上级 c0fafdbf
...@@ -114,7 +114,7 @@ public abstract class DragGestureRecognizer implements Serializable { ...@@ -114,7 +114,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* @param dgl the <code>DragGestureRecognizer</code> * @param dgl the <code>DragGestureRecognizer</code>
* to notify when a drag gesture is detected * to notify when a drag gesture is detected
* <P> * <P>
* @throws <code>IllegalArgumentException</code> * @throws IllegalArgumentException
* if ds is <code>null</code>. * if ds is <code>null</code>.
*/ */
...@@ -157,7 +157,7 @@ public abstract class DragGestureRecognizer implements Serializable { ...@@ -157,7 +157,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* @param sa the set (logical OR) of the <code>DnDConstants</code> * @param sa the set (logical OR) of the <code>DnDConstants</code>
* that this Drag and Drop operation will support * that this Drag and Drop operation will support
* <P> * <P>
* @throws <code>IllegalArgumentException</code> * @throws IllegalArgumentException
* if ds is <code>null</code>. * if ds is <code>null</code>.
*/ */
...@@ -185,7 +185,7 @@ public abstract class DragGestureRecognizer implements Serializable { ...@@ -185,7 +185,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* the <code>DragGestureRecognizer</code> * the <code>DragGestureRecognizer</code>
* is not associated with any <code>Component</code>. * is not associated with any <code>Component</code>.
* <P> * <P>
* @throws <code>IllegalArgumentException</code> * @throws IllegalArgumentException
* if ds is <code>null</code>. * if ds is <code>null</code>.
*/ */
...@@ -202,7 +202,7 @@ public abstract class DragGestureRecognizer implements Serializable { ...@@ -202,7 +202,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* <code>DragGestureRecognizer</code> will * <code>DragGestureRecognizer</code> will
* use to process the Drag and Drop operation * use to process the Drag and Drop operation
* <P> * <P>
* @throws <code>IllegalArgumentException</code> * @throws IllegalArgumentException
* if ds is <code>null</code>. * if ds is <code>null</code>.
*/ */
...@@ -332,7 +332,7 @@ public abstract class DragGestureRecognizer implements Serializable { ...@@ -332,7 +332,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* @param dgl the <code>DragGestureListener</code> to unregister * @param dgl the <code>DragGestureListener</code> to unregister
* from this <code>DragGestureRecognizer</code> * from this <code>DragGestureRecognizer</code>
* <P> * <P>
* @throws <code>IllegalArgumentException</code> if * @throws IllegalArgumentException if
* dgl is not (equal to) the currently registered <code>DragGestureListener</code>. * dgl is not (equal to) the currently registered <code>DragGestureListener</code>.
*/ */
......
...@@ -676,7 +676,7 @@ public class DragSource implements Serializable { ...@@ -676,7 +676,7 @@ public class DragSource implements Serializable {
* <code><em>Foo</em>Listener</code>s on this * <code><em>Foo</em>Listener</code>s on this
* <code>DragSource</code>, or an empty array if no such listeners * <code>DragSource</code>, or an empty array if no such listeners
* have been added * have been added
* @exception <code>ClassCastException</code> if <code>listenerType</code> * @exception ClassCastException if <code>listenerType</code>
* doesn't specify a class or interface that implements * doesn't specify a class or interface that implements
* <code>java.util.EventListener</code> * <code>java.util.EventListener</code>
* *
......
...@@ -63,7 +63,7 @@ import java.util.TooManyListenersException; ...@@ -63,7 +63,7 @@ import java.util.TooManyListenersException;
* itself between the platform and the * itself between the platform and the
* listeners provided by the initiator of the drag operation. * listeners provided by the initiator of the drag operation.
* <p> * <p>
* <a name="defaultCursor" /> * <a name="defaultCursor"></a>
* By default, {@code DragSourceContext} sets the cursor as appropriate * By default, {@code DragSourceContext} sets the cursor as appropriate
* for the current state of the drag and drop operation. For example, if * for the current state of the drag and drop operation. For example, if
* the user has chosen {@linkplain DnDConstants#ACTION_MOVE the move action}, * the user has chosen {@linkplain DnDConstants#ACTION_MOVE the move action},
......
...@@ -47,9 +47,9 @@ import java.awt.event.InputEvent; ...@@ -47,9 +47,9 @@ import java.awt.event.InputEvent;
* source and the drop action selected by the user. The user can select a drop * source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation: * action by pressing modifier keys during the drag operation:
* <pre> * <pre>
* Ctrl + Shift -> ACTION_LINK * Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -> ACTION_COPY * Ctrl -&gt; ACTION_COPY
* Shift -> ACTION_MOVE * Shift -&gt; ACTION_MOVE
* </pre> * </pre>
* If the user selects a drop action, the <i>user drop action</i> is one of * If the user selects a drop action, the <i>user drop action</i> is one of
* <code>DnDConstants</code> that represents the selected drop action if this * <code>DnDConstants</code> that represents the selected drop action if this
...@@ -103,7 +103,7 @@ public class DragSourceDragEvent extends DragSourceEvent { ...@@ -103,7 +103,7 @@ public class DragSourceDragEvent extends DragSourceEvent {
* in one event. Use of the extended modifiers is * in one event. Use of the extended modifiers is
* preferred. * preferred.
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @see java.awt.event.InputEvent * @see java.awt.event.InputEvent
* @see DragSourceEvent#getLocation * @see DragSourceEvent#getLocation
...@@ -154,7 +154,7 @@ public class DragSourceDragEvent extends DragSourceEvent { ...@@ -154,7 +154,7 @@ public class DragSourceDragEvent extends DragSourceEvent {
* @param x the horizontal coordinate for the cursor location * @param x the horizontal coordinate for the cursor location
* @param y the vertical coordinate for the cursor location * @param y the vertical coordinate for the cursor location
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @see java.awt.event.InputEvent * @see java.awt.event.InputEvent
* @since 1.4 * @since 1.4
......
...@@ -63,7 +63,7 @@ public class DragSourceDropEvent extends DragSourceEvent { ...@@ -63,7 +63,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
* @param action the drop action * @param action the drop action
* @param success a boolean indicating if the drop was successful * @param success a boolean indicating if the drop was successful
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @see DragSourceEvent#getLocation * @see DragSourceEvent#getLocation
*/ */
...@@ -91,7 +91,7 @@ public class DragSourceDropEvent extends DragSourceEvent { ...@@ -91,7 +91,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
* @param x the horizontal coordinate for the cursor location * @param x the horizontal coordinate for the cursor location
* @param y the vertical coordinate for the cursor location * @param y the vertical coordinate for the cursor location
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @since 1.4 * @since 1.4
*/ */
...@@ -112,7 +112,7 @@ public class DragSourceDropEvent extends DragSourceEvent { ...@@ -112,7 +112,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
* *
* @param dsc the <code>DragSourceContext</code> * @param dsc the <code>DragSourceContext</code>
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @see DragSourceEvent#getLocation * @see DragSourceEvent#getLocation
*/ */
......
...@@ -96,7 +96,7 @@ public class DragSourceEvent extends EventObject { ...@@ -96,7 +96,7 @@ public class DragSourceEvent extends EventObject {
* *
* @param dsc the <code>DragSourceContext</code> * @param dsc the <code>DragSourceContext</code>
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @see #getLocation * @see #getLocation
*/ */
...@@ -117,7 +117,7 @@ public class DragSourceEvent extends EventObject { ...@@ -117,7 +117,7 @@ public class DragSourceEvent extends EventObject {
* @param x the horizontal coordinate for the cursor location * @param x the horizontal coordinate for the cursor location
* @param y the vertical coordinate for the cursor location * @param y the vertical coordinate for the cursor location
* *
* @throws <code>IllegalArgumentException</code> if <code>dsc</code> is <code>null</code>. * @throws IllegalArgumentException if <code>dsc</code> is <code>null</code>.
* *
* @since 1.4 * @since 1.4
*/ */
......
...@@ -305,7 +305,7 @@ public class DropTarget implements DropTargetListener, Serializable { ...@@ -305,7 +305,7 @@ public class DropTarget implements DropTargetListener, Serializable {
* <P> * <P>
* @param dtl The new <code>DropTargetListener</code> * @param dtl The new <code>DropTargetListener</code>
* <P> * <P>
* @throws <code>TooManyListenersException</code> if a * @throws TooManyListenersException if a
* <code>DropTargetListener</code> is already added to this * <code>DropTargetListener</code> is already added to this
* <code>DropTarget</code>. * <code>DropTarget</code>.
*/ */
...@@ -844,7 +844,7 @@ public class DropTarget implements DropTargetListener, Serializable { ...@@ -844,7 +844,7 @@ public class DropTarget implements DropTargetListener, Serializable {
int actions = DnDConstants.ACTION_COPY_OR_MOVE; int actions = DnDConstants.ACTION_COPY_OR_MOVE;
/** /**
* <code>true</code> if the DropTarget is accepting Drag & Drop operations. * <code>true</code> if the DropTarget is accepting Drag &amp; Drop operations.
* *
* @serial * @serial
*/ */
......
...@@ -49,9 +49,9 @@ import java.util.List; ...@@ -49,9 +49,9 @@ import java.util.List;
* source and the drop action selected by the user. The user can select a drop * source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation: * action by pressing modifier keys during the drag operation:
* <pre> * <pre>
* Ctrl + Shift -> ACTION_LINK * Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -> ACTION_COPY * Ctrl -&gt; ACTION_COPY
* Shift -> ACTION_MOVE * Shift -&gt; ACTION_MOVE
* </pre> * </pre>
* If the user selects a drop action, the <i>user drop action</i> is one of * If the user selects a drop action, the <i>user drop action</i> is one of
* <code>DnDConstants</code> that represents the selected drop action if this * <code>DnDConstants</code> that represents the selected drop action if this
...@@ -88,11 +88,11 @@ public class DropTargetDragEvent extends DropTargetEvent { ...@@ -88,11 +88,11 @@ public class DropTargetDragEvent extends DropTargetEvent {
* @param srcActions The source drop actions * @param srcActions The source drop actions
* *
* @throws NullPointerException if cursorLocn is null * @throws NullPointerException if cursorLocn is null
* @throws <code>IllegalArgumentException</code> if dropAction is not one of * @throws IllegalArgumentException if dropAction is not one of
* <code>DnDConstants</code>. * <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if srcActions is not * @throws IllegalArgumentException if srcActions is not
* a bitwise mask of <code>DnDConstants</code>. * a bitwise mask of <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if dtc is <code>null</code>. * @throws IllegalArgumentException if dtc is <code>null</code>.
*/ */
public DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) { public DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) {
......
...@@ -48,9 +48,9 @@ import java.util.List; ...@@ -48,9 +48,9 @@ import java.util.List;
* source and the drop action selected by the user. The user can select a drop * source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation: * action by pressing modifier keys during the drag operation:
* <pre> * <pre>
* Ctrl + Shift -> ACTION_LINK * Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -> ACTION_COPY * Ctrl -&gt; ACTION_COPY
* Shift -> ACTION_MOVE * Shift -&gt; ACTION_MOVE
* </pre> * </pre>
* If the user selects a drop action, the <i>user drop action</i> is one of * If the user selects a drop action, the <i>user drop action</i> is one of
* <code>DnDConstants</code> that represents the selected drop action if this * <code>DnDConstants</code> that represents the selected drop action if this
...@@ -92,13 +92,13 @@ public class DropTargetDropEvent extends DropTargetEvent { ...@@ -92,13 +92,13 @@ public class DropTargetDropEvent extends DropTargetEvent {
* @param dropAction the user drop action. * @param dropAction the user drop action.
* @param srcActions the source drop actions. * @param srcActions the source drop actions.
* *
* @throws <code>NullPointerException</code> * @throws NullPointerException
* if cursorLocn is <code>null</code> * if cursorLocn is <code>null</code>
* @throws <code>IllegalArgumentException</code> if dropAction is not one of * @throws IllegalArgumentException
* <code>DnDConstants</code>. * if dropAction is not one of <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if srcActions is not * @throws IllegalArgumentException
* a bitwise mask of <code>DnDConstants</code>. * if srcActions is not a bitwise mask of <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if dtc is <code>null</code>. * @throws IllegalArgumentException if dtc is <code>null</code>.
*/ */
public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) { public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) {
...@@ -136,13 +136,12 @@ public class DropTargetDropEvent extends DropTargetEvent { ...@@ -136,13 +136,12 @@ public class DropTargetDropEvent extends DropTargetEvent {
* @param srcActions the source drop actions. * @param srcActions the source drop actions.
* @param isLocal True if the source is in the same JVM as the target * @param isLocal True if the source is in the same JVM as the target
* *
* @throws <code>NullPointerException</code> if cursorLocn is * @throws NullPointerException
* <code>null</code> * if cursorLocn is <code>null</code>
* @throws <code>IllegalArgumentException</code> if dropAction is not one of * @throws IllegalArgumentException
* <code>DnDConstants</code>. * if dropAction is not one of <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if srcActions is not * @throws IllegalArgumentException if srcActions is not a bitwise mask of <code>DnDConstants</code>.
* a bitwise mask of <code>DnDConstants</code>. * @throws IllegalArgumentException if dtc is <code>null</code>.
* @throws <code>IllegalArgumentException</code> if dtc is <code>null</code>.
*/ */
public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal) { public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册