Package adams.gui.event
Enum UndoEvent.UndoType
- java.lang.Object
-
- java.lang.Enum<UndoEvent.UndoType>
-
- adams.gui.event.UndoEvent.UndoType
-
- All Implemented Interfaces:
Serializable
,Comparable<UndoEvent.UndoType>
- Enclosing class:
- UndoEvent
public static enum UndoEvent.UndoType extends Enum<UndoEvent.UndoType>
The enum of event types.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UndoEvent.UndoType
valueOf(String name)
Returns the enum constant of this type with the specified name.static UndoEvent.UndoType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD_UNDO
public static final UndoEvent.UndoType ADD_UNDO
an undo point was added.
-
ADD_REDO
public static final UndoEvent.UndoType ADD_REDO
a redo point was added.
-
UNDO
public static final UndoEvent.UndoType UNDO
performed an "undo".
-
REDO
public static final UndoEvent.UndoType REDO
performed a "redo".
-
CLEAR
public static final UndoEvent.UndoType CLEAR
the undo list was cleared.
-
-
Method Detail
-
values
public static UndoEvent.UndoType[] 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 (UndoEvent.UndoType c : UndoEvent.UndoType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UndoEvent.UndoType 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
-
-