< prev index next >
src/java.desktop/share/classes/java/awt/dnd/DragSourceContext.java
Print this page
*** 277,287 ****
public int getSourceActions() {
return sourceActions;
}
/**
! * Sets the cursor for this drag operation to the specified
* {@code Cursor}. If the specified {@code Cursor}
* is {@code null}, the default drag cursor behavior is
* activated for this drag operation, otherwise it is deactivated.
*
* @param c the initial {@code Cursor} for this drag operation,
--- 277,287 ----
public int getSourceActions() {
return sourceActions;
}
/**
! * Sets the custom cursor for this drag operation to the specified
* {@code Cursor}. If the specified {@code Cursor}
* is {@code null}, the default drag cursor behavior is
* activated for this drag operation, otherwise it is deactivated.
*
* @param c the initial {@code Cursor} for this drag operation,
*** 296,308 ****
useCustomCursor = (c != null);
setCursorImpl(c);
}
/**
! * Returns the current drag {@code Cursor}.
*
! * @return the current drag {@code Cursor}
*/
public Cursor getCursor() { return cursor; }
/**
--- 296,310 ----
useCustomCursor = (c != null);
setCursorImpl(c);
}
/**
! * Returns the current custom drag {@code Cursor}.
*
! * @return the current custom drag {@code Cursor}, if it was set
! * otherwise returns {@code null}.
! * @see #setCursor
*/
public Cursor getCursor() { return cursor; }
/**
< prev index next >