Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityEditComponentPanel.InputFocus.Initial
java.lang.Object
is.codion.swing.framework.ui.EntityEditComponentPanel.InputFocus.Initial
- Enclosing class:
- EntityEditComponentPanel.InputFocus
Manages the component that should receive the initial focus when the panel is activated.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
request()
Requests the initial focus, if an initial focus component or component attribute has been set, that component receives the focus, if not, or if that component is not focusable, this panel receives the focus.void
Sets the component associated with the given attribute as the component that should receive the initial focus in this edit panel.void
set
(Supplier<JComponent> component) Sets theSupplier
supplying the component that should receive the focus when this edit panel is cleared or activated.void
set
(JComponent component) Sets the the component that should receive the focus when this edit panel is cleared or activated.
-
Method Details
-
set
Sets the the component that should receive the focus when this edit panel is cleared or activated.
- Parameters:
component
- the component that should receive the focus when this edit panel is cleared or activated
-
set
Sets the component associated with the given attribute as the component that should receive the initial focus in this edit panel.- Parameters:
attribute
- the attribute which component should receive the focus this edit panel is cleared or activated
-
set
Sets the
Supplier
supplying the component that should receive the focus when this edit panel is cleared or activated.- Parameters:
component
- supplies the component that should receive the focus when this edit panel is cleared or activated
-
request
public void request()Requests the initial focus, if an initial focus component or component attribute has been set, that component receives the focus, if not, or if that component is not focusable, this panel receives the focus.
Note that if this panel is not visible then calling this method has no effect.
-