Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityEditPanel.InputFocus
java.lang.Object
is.codion.swing.framework.ui.EntityEditPanel.InputFocus
- Enclosing class:
EntityEditPanel
Manages the components that should receive the input focus.
Both master and detail editor components can be referenced by attribute, allowing focus to be directed to any component in the edit panel.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classManages the component that should receive focus after insert has been performed.final classManages the component that should receive the initial focus when the panel is activated. -
Method Summary
Modifier and TypeMethodDescriptioninitial()voidRequest focus for the component associated with the given attribute.voidrequest(JComponent component) Request focus for the given component, bypassing attribute resolution.
-
Method Details
-
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. If the attribute appears in multiple detail editor slots (multi-slot configurations), the slot focused is unspecified — userequest(JComponent)with a slot-resolved component for deterministic targeting. UsesJComponent.requestFocusInWindow().- Parameters:
attribute- the attribute of the component to select
-
request
Request focus for the given component, bypassing attribute resolution. Useful for multi-slot detail editor configurations where a specific slot's component has been resolved by the caller and should receive focus deterministically. UsesJComponent.requestFocusInWindow().- Parameters:
component- the component to focus
-
initial
- Returns:
- the initial focus settings
-
afterInsert
- Returns:
- the after insert focus settings
-