FocusEventNameFocusEvent
DescriptionFocus events are generated when a component gets or loses input focus. Focus events come in two flavors, permanent and temporary. Permanent focus events occur with explicit focus changes. For example, when the user tabs through components, this causes permanent focus events. An example of a temporary focus event is when a component loses focus as its containing window is deactivated. Class Definition
public class java.awt.event.FocusEvent extends java.awt.event.ComponentEvent { // Constants public final static int FOCUS_FIRST; public final static int FOCUS_GAINED; public final static int FOCUS_LAST; public final static int FOCUS_LOST; // Constructors public FocusEvent (Component source, int id); public FocusEvent (Component source, int id, boolean temporary); // Instance Methods public boolean isTemporary(); public String paramString(); } ConstantsFOCUS_FIRSTpublic final static int FOCUS_FIRSTSpecifies the beginning range of focus event ID values. FOCUS_GAINEDpublic final static int FOCUS_GAINEDEvent type ID indicating that the component gained the input focus. FOCUS_LASTpublic final static int FOCUS_LASTSpecifies the ending range of focus event ID values. FOCUS_LOSTpublic final static int FOCUS_LOSTEvent type ID indicating that the component lost the input focus. ConstructorsFocusEventpublic FocusEvent (Component source, int id)
public FocusEvent (Component source, int id, boolean temporary)
Instance MethodsisTemporarypublic boolean isTemporary()
paramStringpublic String paramString()
See AlsoComponent, ComponentEvent, FocusAdapter, FocusListener |
|