提交 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 {
* @param dgl the <code>DragGestureRecognizer</code>
* to notify when a drag gesture is detected
* <P>
* @throws <code>IllegalArgumentException</code>
* @throws IllegalArgumentException
* if ds is <code>null</code>.
*/
......@@ -157,7 +157,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* @param sa the set (logical OR) of the <code>DnDConstants</code>
* that this Drag and Drop operation will support
* <P>
* @throws <code>IllegalArgumentException</code>
* @throws IllegalArgumentException
* if ds is <code>null</code>.
*/
......@@ -185,7 +185,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* the <code>DragGestureRecognizer</code>
* is not associated with any <code>Component</code>.
* <P>
* @throws <code>IllegalArgumentException</code>
* @throws IllegalArgumentException
* if ds is <code>null</code>.
*/
......@@ -202,7 +202,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* <code>DragGestureRecognizer</code> will
* use to process the Drag and Drop operation
* <P>
* @throws <code>IllegalArgumentException</code>
* @throws IllegalArgumentException
* if ds is <code>null</code>.
*/
......@@ -332,7 +332,7 @@ public abstract class DragGestureRecognizer implements Serializable {
* @param dgl the <code>DragGestureListener</code> to unregister
* from this <code>DragGestureRecognizer</code>
* <P>
* @throws <code>IllegalArgumentException</code> if
* @throws IllegalArgumentException if
* dgl is not (equal to) the currently registered <code>DragGestureListener</code>.
*/
......
......@@ -676,7 +676,7 @@ public class DragSource implements Serializable {
* <code><em>Foo</em>Listener</code>s on this
* <code>DragSource</code>, or an empty array if no such listeners
* 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
* <code>java.util.EventListener</code>
*
......
......@@ -63,7 +63,7 @@ import java.util.TooManyListenersException;
* itself between the platform and the
* listeners provided by the initiator of the drag operation.
* <p>
* <a name="defaultCursor" />
* <a name="defaultCursor"></a>
* By default, {@code DragSourceContext} sets the cursor as appropriate
* for the current state of the drag and drop operation. For example, if
* the user has chosen {@linkplain DnDConstants#ACTION_MOVE the move action},
......
......@@ -47,9 +47,9 @@ import java.awt.event.InputEvent;
* source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation:
* <pre>
* Ctrl + Shift -> ACTION_LINK
* Ctrl -> ACTION_COPY
* Shift -> ACTION_MOVE
* Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -&gt; ACTION_COPY
* Shift -&gt; ACTION_MOVE
* </pre>
* 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
......@@ -103,7 +103,7 @@ public class DragSourceDragEvent extends DragSourceEvent {
* in one event. Use of the extended modifiers is
* 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 DragSourceEvent#getLocation
......@@ -154,7 +154,7 @@ public class DragSourceDragEvent extends DragSourceEvent {
* @param x the horizontal 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
* @since 1.4
......
......@@ -63,7 +63,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
* @param action the drop action
* @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
*/
......@@ -91,7 +91,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
* @param x the horizontal 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
*/
......@@ -112,7 +112,7 @@ public class DragSourceDropEvent extends DragSourceEvent {
*
* @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
*/
......
......@@ -96,7 +96,7 @@ public class DragSourceEvent extends EventObject {
*
* @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
*/
......@@ -117,7 +117,7 @@ public class DragSourceEvent extends EventObject {
* @param x the horizontal 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
*/
......
......@@ -305,7 +305,7 @@ public class DropTarget implements DropTargetListener, Serializable {
* <P>
* @param dtl The new <code>DropTargetListener</code>
* <P>
* @throws <code>TooManyListenersException</code> if a
* @throws TooManyListenersException if a
* <code>DropTargetListener</code> is already added to this
* <code>DropTarget</code>.
*/
......@@ -844,7 +844,7 @@ public class DropTarget implements DropTargetListener, Serializable {
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
*/
......
......@@ -49,9 +49,9 @@ import java.util.List;
* source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation:
* <pre>
* Ctrl + Shift -> ACTION_LINK
* Ctrl -> ACTION_COPY
* Shift -> ACTION_MOVE
* Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -&gt; ACTION_COPY
* Shift -&gt; ACTION_MOVE
* </pre>
* 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
......@@ -88,11 +88,11 @@ public class DropTargetDragEvent extends DropTargetEvent {
* @param srcActions The source drop actions
*
* @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>.
* @throws <code>IllegalArgumentException</code> if srcActions is not
* @throws IllegalArgumentException 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 DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) {
......
......@@ -48,9 +48,9 @@ import java.util.List;
* source and the drop action selected by the user. The user can select a drop
* action by pressing modifier keys during the drag operation:
* <pre>
* Ctrl + Shift -> ACTION_LINK
* Ctrl -> ACTION_COPY
* Shift -> ACTION_MOVE
* Ctrl + Shift -&gt; ACTION_LINK
* Ctrl -&gt; ACTION_COPY
* Shift -&gt; ACTION_MOVE
* </pre>
* 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
......@@ -92,13 +92,13 @@ public class DropTargetDropEvent extends DropTargetEvent {
* @param dropAction the user drop action.
* @param srcActions the source drop actions.
*
* @throws <code>NullPointerException</code>
* @throws NullPointerException
* if cursorLocn is <code>null</code>
* @throws <code>IllegalArgumentException</code> if dropAction is not one of
* <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</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 dropAction is not one of <code>DnDConstants</code>.
* @throws IllegalArgumentException
* if srcActions is not a bitwise mask of <code>DnDConstants</code>.
* @throws IllegalArgumentException if dtc is <code>null</code>.
*/
public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) {
......@@ -136,13 +136,12 @@ public class DropTargetDropEvent extends DropTargetEvent {
* @param srcActions the source drop actions.
* @param isLocal True if the source is in the same JVM as the target
*
* @throws <code>NullPointerException</code> if cursorLocn is
* <code>null</code>
* @throws <code>IllegalArgumentException</code> if dropAction is not one of
* <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if srcActions is not
* a bitwise mask of <code>DnDConstants</code>.
* @throws <code>IllegalArgumentException</code> if dtc is <code>null</code>.
* @throws NullPointerException
* if cursorLocn is <code>null</code>
* @throws IllegalArgumentException
* if dropAction is not one of <code>DnDConstants</code>.
* @throws IllegalArgumentException if srcActions is not a bitwise mask of <code>DnDConstants</code>.
* @throws IllegalArgumentException if dtc is <code>null</code>.
*/
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.
先完成此消息的编辑!
想要评论请 注册