src/share/classes/java/awt/dnd/DragSource.java

Print this page

        

*** 598,608 **** * @see #addDragSourceListener * @see #removeDragSourceListener * @since 1.4 */ public DragSourceListener[] getDragSourceListeners() { ! return (DragSourceListener[])getListeners(DragSourceListener.class); } /** * Adds the specified <code>DragSourceMotionListener</code> to this * <code>DragSource</code> to receive drag motion events during drag --- 598,608 ---- * @see #addDragSourceListener * @see #removeDragSourceListener * @since 1.4 */ public DragSourceListener[] getDragSourceListeners() { ! return getListeners(DragSourceListener.class); } /** * Adds the specified <code>DragSourceMotionListener</code> to this * <code>DragSource</code> to receive drag motion events during drag
*** 658,669 **** * @see #addDragSourceMotionListener * @see #removeDragSourceMotionListener * @since 1.4 */ public DragSourceMotionListener[] getDragSourceMotionListeners() { ! return (DragSourceMotionListener[]) ! getListeners(DragSourceMotionListener.class); } /** * Gets all the objects currently registered as * <code><em>Foo</em>Listener</code>s upon this <code>DragSource</code>. --- 658,668 ---- * @see #addDragSourceMotionListener * @see #removeDragSourceMotionListener * @since 1.4 */ public DragSourceMotionListener[] getDragSourceMotionListeners() { ! return getListeners(DragSourceMotionListener.class); } /** * Gets all the objects currently registered as * <code><em>Foo</em>Listener</code>s upon this <code>DragSource</code>.
*** 894,904 **** * @return the drag gesture motion threshold * @see MouseDragGestureRecognizer * @since 1.5 */ public static int getDragThreshold() { ! int ts = ((Integer)AccessController.doPrivileged( new GetIntegerAction("awt.dnd.drag.threshold", 0))).intValue(); if (ts > 0) { return ts; } else { Integer td = (Integer)Toolkit.getDefaultToolkit(). --- 893,903 ---- * @return the drag gesture motion threshold * @see MouseDragGestureRecognizer * @since 1.5 */ public static int getDragThreshold() { ! int ts = (AccessController.doPrivileged( new GetIntegerAction("awt.dnd.drag.threshold", 0))).intValue(); if (ts > 0) { return ts; } else { Integer td = (Integer)Toolkit.getDefaultToolkit().