de.matthiasmann.twl
Enum FocusGainedCause

java.lang.Object
  extended by java.lang.Enum<FocusGainedCause>
      extended by de.matthiasmann.twl.FocusGainedCause
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FocusGainedCause>

public enum FocusGainedCause
extends java.lang.Enum<FocusGainedCause>

The cause for the Widget.keyboardFocusGained(de.matthiasmann.twl.FocusGainedCause, de.matthiasmann.twl.Widget) event.


Enum Constant Summary
CHILD_FOCUSED
          A child widget requested focus
FOCUS_KEY
          Focus transfer caused by focus key (eg TAB)
MANUAL
          Widget.requestKeyboardFocus() was invoked
MOUSE_BTNDOWN
          Focus transfer caused by mouse down event on the widget
 
Method Summary
static FocusGainedCause valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FocusGainedCause[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FOCUS_KEY

public static final FocusGainedCause FOCUS_KEY
Focus transfer caused by focus key (eg TAB)


MOUSE_BTNDOWN

public static final FocusGainedCause MOUSE_BTNDOWN
Focus transfer caused by mouse down event on the widget


CHILD_FOCUSED

public static final FocusGainedCause CHILD_FOCUSED
A child widget requested focus


MANUAL

public static final FocusGainedCause MANUAL
Widget.requestKeyboardFocus() was invoked

Method Detail

values

public static final FocusGainedCause[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FocusGainedCause c : FocusGainedCause.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FocusGainedCause valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name