Java java.awt.event FocusEvent fields, constructors, methods, implement or subclass

Example usage for Java java.awt.event FocusEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.event FocusEvent.

The text is from its open source code.

Field

intFOCUS_FIRST
The first number in the range of ids used for focus events.
intFOCUS_LAST
The last number in the range of ids used for focus events.
intFOCUS_GAINED
This event indicates that the Component is now the focus owner.
intFOCUS_LOST
This event indicates that the Component is no longer the focus owner.

Constructor

FocusEvent(Component source, int id)
Constructs a FocusEvent object and identifies it as a permanent change in focus.
FocusEvent(Component source, int id, boolean temporary, Component opposite)
Constructs a FocusEvent object with the specified temporary state, opposite Component and the Cause.UNKNOWN cause.

Method

ComponentgetComponent()
Returns the originator of the event.
intgetID()
Returns the event type.
ComponentgetOppositeComponent()
Returns the other Component involved in this focus change.
ObjectgetSource()
The object on which the Event initially occurred.
booleanisTemporary()
Identifies the focus change event as temporary or permanent.
StringparamString()
Returns a parameter string identifying this event.
StringtoString()
Returns a String representation of this object.