public interface DragAndDropFeedback
Command
that supports detailed drag and drop feedback.
This interface provides synonyms for all the important org.eclipse.swt.dnd.DND constants,
so that commands can be written without reference to SWT.Modifier and Type | Field and Description |
---|---|
static int |
DROP_COPY
This is the same as org.eclipse.swt.dnd.DND.DROP_COPY.
|
static int |
DROP_LINK
This is the same as org.eclipse.swt.dnd.DND.DROP_LINK.
|
static int |
DROP_MOVE
This is the same as org.eclipse.swt.dnd.DND.DROP_MOVE.
|
static int |
DROP_NONE
This is the same as org.eclipse.swt.dnd.DND.DROP_NONE.
|
static int |
FEEDBACK_INSERT_AFTER
This is the same as org.eclipse.swt.dnd.DND.FEEDBACK_INSERT_AFTER.
|
static int |
FEEDBACK_INSERT_BEFORE
This is the same as org.eclipse.swt.dnd.DND.FEEDBACK_INSERT_BEFORE.
|
static int |
FEEDBACK_NONE
This is the same as org.eclipse.swt.dnd.DND.FEEDBACK_NONE.
|
static int |
FEEDBACK_SELECT
This is the same as org.eclipse.swt.dnd.DND.FEEDBACK_SELECT.
|
Modifier and Type | Method and Description |
---|---|
int |
getFeedback()
This returns one of the FEEDBACK_* values.
|
int |
getOperation()
This returns one of the DROP_* values.
|
boolean |
validate(java.lang.Object owner,
float location,
int operations,
int operation,
java.util.Collection<?> collection)
This is called repeatedly as the drag and drop information changes.
|
static final int DROP_NONE
static final int DROP_COPY
static final int DROP_MOVE
static final int DROP_LINK
static final int FEEDBACK_NONE
static final int FEEDBACK_SELECT
static final int FEEDBACK_INSERT_BEFORE
static final int FEEDBACK_INSERT_AFTER
boolean validate(java.lang.Object owner, float location, int operations, int operation, java.util.Collection<?> collection)
int getFeedback()
int getOperation()