Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityEditComponentPanel.InputFocus
java.lang.Object
is.codion.swing.framework.ui.EntityEditComponentPanel.InputFocus
- Enclosing class:
- EntityEditComponentPanel
Manages the components that should receive the input focus.
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Manages the component that should receive focus after insert has been performed.final class
Manages the component that should receive focus after an update has been performed.final class
Manages the component that should receive the initial focus when the panel is activated. -
Method Summary
Modifier and TypeMethodDescriptioninitial()
void
Request focus for the component associated with the given attribute.If set to true then components created subsequently will transfer focus on enter, otherwise not.
-
Method Details
-
transferOnEnter
If set to true then components created subsequently will transfer focus on enter, otherwise not. Note that changing this has no effect on components that have already been created.- Returns:
- the
State
controlling whether components transfer focus on enter - See Also:
-
request
Request focus for the component associated with the given attribute. If no component is associated with the attribute calling this method has no effect. UsesJComponent.requestFocusInWindow()
.- Parameters:
attribute
- the attribute of the component to select
-
initial
- Returns:
- the initial focus settings
-
afterInsert
- Returns:
- the after insert focus settings
-
afterUpdate
- Returns:
- the after update focus settings
-