Package adams.gui.core
Enum DragAndDropTree.DropMenu
- java.lang.Object
-
- java.lang.Enum<DragAndDropTree.DropMenu>
-
- adams.gui.core.DragAndDropTree.DropMenu
-
- All Implemented Interfaces:
Serializable
,Comparable<DragAndDropTree.DropMenu>
- Enclosing class:
- DragAndDropTree
public static enum DragAndDropTree.DropMenu extends Enum<DragAndDropTree.DropMenu>
Enumeration for where to drop the node.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DragAndDropTree.DropPosition
getPosition()
Returns the drop position.static DragAndDropTree.DropMenu
valueOf(String name)
Returns the enum constant of this type with the specified name.static DragAndDropTree.DropMenu[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final DragAndDropTree.DropMenu ADD
Add.
-
MOVE
public static final DragAndDropTree.DropMenu MOVE
Move.
-
BENEATH
public static final DragAndDropTree.DropMenu BENEATH
here at this position.
-
HERE
public static final DragAndDropTree.DropMenu HERE
here at this position.
-
AFTER
public static final DragAndDropTree.DropMenu AFTER
after this position.
-
CANCEL
public static final DragAndDropTree.DropMenu CANCEL
cancelling.
-
-
Method Detail
-
values
public static DragAndDropTree.DropMenu[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DragAndDropTree.DropMenu c : DragAndDropTree.DropMenu.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DragAndDropTree.DropMenu valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPosition
public DragAndDropTree.DropPosition getPosition()
Returns the drop position.- Returns:
- the position, can be nulls
-
-