public enum DndOp extends Enum<DndOp>
Modifier and Type | Method and Description |
---|---|
static int |
dragAll()
Returns DND.DROP_COPY | DND.DROP_MOVE;
|
static int |
dropAll()
Returns DND.DROP_DEFAULT | DND.DROP_COPY | DND.DROP_MOVE;
|
int |
flag()
Return DND.DROP_COPY or DND.DROP_MOVE, as appropriate.
|
boolean |
trySetDetail(DropTargetEvent event)
Attempts to set the detail of this event, if possible.
|
static DndOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DndOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static DndOp[] values()
for (DndOp c : DndOp.values()) System.out.println(c);
public static DndOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static int dropAll()
public static int dragAll()
public int flag()
public boolean trySetDetail(DropTargetEvent event)