org.favabeans.base
Class DnDAction
java.lang.Object
|
+--org.favabeans.base.DnDAction
- public class DnDAction
- extends Object
This class is a type-safe enumeration developed to clear up some
ambiguities that prevail in the java.awt.DnDConstants
definitions. The latter does not make clear what combinations of
the various actions are permissible (for example, is the
combination ACTiON_MOVE | ACTION_LINK
valid?).
By using either a single member of this class, or an
array of members, we can be more precise. A single member
xis used to indicate one action x, while
an array is used to indicate, say, a range of possible actions.
ACTION_NONE
public static final DnDAction ACTION_NONE
ACTION_COPY
public static final DnDAction ACTION_COPY
ACTION_MOVE
public static final DnDAction ACTION_MOVE
ACTION_LINK
public static final DnDAction ACTION_LINK
ACTION_REFERENCE
public static final DnDAction ACTION_REFERENCE
COPY_OR_LINK
public static final DnDAction[] COPY_OR_LINK
COPY_OR_LINK_OR_MOVE
public static final DnDAction[] COPY_OR_LINK_OR_MOVE
toString
public String toString()
- Overrides:
toString
in class Object
intValue
public int intValue()
intValue
public static int intValue(DnDAction[] actions)
getActionFromInt
public static DnDAction getActionFromInt(int intValue)
getActionArrayFromInt
public static DnDAction[] getActionArrayFromInt(int intValue)
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.