Enum FormFocusEvent.Type
- java.lang.Object
-
- java.lang.Enum<FormFocusEvent.Type>
-
- net.sf.jguiraffe.gui.builder.event.FormFocusEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FormFocusEvent.Type>
- Enclosing class:
- FormFocusEvent
public static enum FormFocusEvent.Type extends Enum<FormFocusEvent.Type>
An enumeration class defining the different types of focus events. EveryFormFocusEvent
has such a type determining what exactly happened.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOCUS_GAINED
A component gained focus.FOCUS_LOST
A component lost focus.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormFocusEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormFocusEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FOCUS_GAINED
public static final FormFocusEvent.Type FOCUS_GAINED
A component gained focus.
-
FOCUS_LOST
public static final FormFocusEvent.Type FOCUS_LOST
A component lost focus.
-
-
Method Detail
-
values
public static FormFocusEvent.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 (FormFocusEvent.Type c : FormFocusEvent.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 FormFocusEvent.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
-
-