- Type Parameters:
K- the focus key type
- All Known Implementing Classes:
SimpleKeyedFocusModel
-
Method Summary
Modifier and TypeMethodDescriptionfoci()Returns a stream of all foci in the target widget.booleanChecks if a focus is focused in the target widget.voidsetFocused(Focus<K> focus) Applies a focus to the target widget.static FocusModel<?> Creates a simple focus model for a focusable widget.
-
Method Details
-
isFocused
-
setFocused
Applies a focus to the target widget.This method does not need to request the GUI's focus for the widget; that is the responsibility of the caller.
- Parameters:
focus- the focus
-
foci
-
simple
Creates a simple focus model for a focusable widget. The focus model provides the whole widget area as its only focus area.- Parameters:
widget- the widget- Returns:
- the focus model
-