Uses of Enum Class
java.awt.event.FocusEvent.Cause
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of FocusEvent.Cause in java.awt
Modifier and TypeMethodDescriptionprotected boolean
Component.requestFocus
(boolean temporary, FocusEvent.Cause cause) Requests by the reason ofcause
that thisComponent
get the input focus, and that thisComponent
's top-level ancestor become the focusedWindow
.void
Component.requestFocus
(FocusEvent.Cause cause) Requests by the reason ofcause
that this Component get the input focus, and that this Component's top-level ancestor become the focused Window.boolean
Component.requestFocusInWindow
(FocusEvent.Cause cause) Requests by the reason ofcause
that this Component get the input focus, if this Component's top-level ancestor is already the focused Window. -
Uses of FocusEvent.Cause in java.awt.event
Modifier and TypeClassDescriptionstatic enum
This enum represents the cause of aFocusEvent
- the reason why it occurred.Modifier and TypeMethodDescriptionfinal FocusEvent.Cause
FocusEvent.getCause()
Returns the event cause.static FocusEvent.Cause
Returns the enum constant of this class with the specified name.static FocusEvent.Cause[]
FocusEvent.Cause.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionFocusEvent
(Component source, int id, boolean temporary, Component opposite, FocusEvent.Cause cause) Constructs aFocusEvent
object with the specified temporary state, oppositeComponent
and the cause. -
Uses of FocusEvent.Cause in javax.swing
Modifier and TypeMethodDescriptionvoid
JToggleButton.requestFocus
(FocusEvent.Cause cause) If this toggle button is a member of theButtonGroup
which has another toggle button which is selected and can be the focus owner, and the focus cause argument denotes window activation or focus traversal action of any direction the result of the method execution is the same as callingComponent.requestFocus(FocusEvent.Cause)
on the toggle button selected in the group.boolean
JToggleButton.requestFocusInWindow
(FocusEvent.Cause cause) If this toggle button is a member of theButtonGroup
which has another toggle button which is selected and can be the focus owner, and the focus cause argument denotes window activation or focus traversal action of any direction the result of the method execution is the same as callingComponent.requestFocusInWindow(FocusEvent.Cause)
on the toggle button selected in the group.