Package adams.gui.event
Enum ActorChangeEvent.Type
- java.lang.Object
-
- java.lang.Enum<ActorChangeEvent.Type>
-
- adams.gui.event.ActorChangeEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ActorChangeEvent.Type>
- Enclosing class:
- ActorChangeEvent
public static enum ActorChangeEvent.Type extends Enum<ActorChangeEvent.Type>
The type of event.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MODIFY
an actor got modified.MODIFY_BULK
a bulk of actors got modified (no actors attached).MODIFY_RANGE
a range of actors got modified.REMOVE
an actor got deleted.REMOVE_RANGE
a range of actors got deleted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActorChangeEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ActorChangeEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODIFY
public static final ActorChangeEvent.Type MODIFY
an actor got modified.
-
MODIFY_RANGE
public static final ActorChangeEvent.Type MODIFY_RANGE
a range of actors got modified.
-
MODIFY_BULK
public static final ActorChangeEvent.Type MODIFY_BULK
a bulk of actors got modified (no actors attached).
-
REMOVE
public static final ActorChangeEvent.Type REMOVE
an actor got deleted.
-
REMOVE_RANGE
public static final ActorChangeEvent.Type REMOVE_RANGE
a range of actors got deleted.
-
-
Method Detail
-
values
public static ActorChangeEvent.Type[] 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 (ActorChangeEvent.Type c : ActorChangeEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActorChangeEvent.Type 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
-
-