Package adams.gui.core
Enum DragAndDropTree.DropPosition
- java.lang.Object
-
- java.lang.Enum<DragAndDropTree.DropPosition>
-
- adams.gui.core.DragAndDropTree.DropPosition
-
- All Implemented Interfaces:
EnumWithCustomDisplay<DragAndDropTree.DropPosition>
,EnumWithCustomParsing<DragAndDropTree.DropPosition>
,Serializable
,Comparable<DragAndDropTree.DropPosition>
- Enclosing class:
- DragAndDropTree
public static enum DragAndDropTree.DropPosition extends Enum<DragAndDropTree.DropPosition> implements EnumWithCustomDisplay<DragAndDropTree.DropPosition>
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
parse(String s)
Parses the given string and returns the associated enum.String
toDisplay()
Returns the display string.String
toRaw()
Returns the raw enum string.String
toString()
Returns the display string.static DragAndDropTree.DropPosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static DragAndDropTree.DropPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BENEATH
public static final DragAndDropTree.DropPosition BENEATH
here at this position.
-
HERE
public static final DragAndDropTree.DropPosition HERE
here at this position.
-
AFTER
public static final DragAndDropTree.DropPosition AFTER
after this position.
-
-
Method Detail
-
values
public static DragAndDropTree.DropPosition[] 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.DropPosition c : DragAndDropTree.DropPosition.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.DropPosition 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
-
toDisplay
public String toDisplay()
Returns the display string.- Specified by:
toDisplay
in interfaceEnumWithCustomDisplay<DragAndDropTree.DropPosition>
- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceEnumWithCustomDisplay<DragAndDropTree.DropPosition>
- Returns:
- the raw enum string
-
toString
public String toString()
Returns the display string.- Overrides:
toString
in classEnum<DragAndDropTree.DropPosition>
- Returns:
- the display string
-
parse
public DragAndDropTree.DropPosition parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceEnumWithCustomParsing<DragAndDropTree.DropPosition>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if not found
-
-