Enum FormControllerFormEvent.Type
- java.lang.Object
-
- java.lang.Enum<FormControllerFormEvent.Type>
-
- net.sf.jguiraffe.gui.builder.window.ctrl.FormControllerFormEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FormControllerFormEvent.Type>
- Enclosing class:
- FormControllerFormEvent
public static enum FormControllerFormEvent.Type extends Enum<FormControllerFormEvent.Type>
An enumeration class defining the possible types ofFormControllerFormEvent
events. Basically, the type determines whether the form was committed or canceled.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORM_CANCELED
Indicates that the form was canceled.FORM_COMMITTED
Indicates that the form was committed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormControllerFormEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormControllerFormEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORM_COMMITTED
public static final FormControllerFormEvent.Type FORM_COMMITTED
Indicates that the form was committed. This means that the user closed the form with the intension to save the data that was entered.
-
FORM_CANCELED
public static final FormControllerFormEvent.Type FORM_CANCELED
Indicates that the form was canceled. The user hit the cancel button, pressed escape or did something else to abort the edit operation.
-
-
Method Detail
-
values
public static FormControllerFormEvent.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 (FormControllerFormEvent.Type c : FormControllerFormEvent.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 FormControllerFormEvent.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
-
-