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.


Field Summary
static DnDAction ACTION_COPY
           
static DnDAction ACTION_LINK
           
static DnDAction ACTION_MOVE
           
static DnDAction ACTION_NONE
           
static DnDAction ACTION_REFERENCE
           
static DnDAction[] COPY_OR_LINK
           
static DnDAction[] COPY_OR_LINK_OR_MOVE
           
 
Method Summary
static DnDAction[] getActionArrayFromInt(int intValue)
           
static DnDAction getActionFromInt(int intValue)
           
 int intValue()
           
static int intValue(DnDAction[] actions)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.