Class EntityEditPanel.InputFocus

java.lang.Object
is.codion.swing.framework.ui.EntityEditPanel.InputFocus
Enclosing class:
EntityEditPanel

public final class EntityEditPanel.InputFocus extends Object

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:
  • Method Details

    • request

      public void request(Attribute<?> attribute)
      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 — use request(JComponent) with a slot-resolved component for deterministic targeting. Uses JComponent.requestFocusInWindow().
      Parameters:
      attribute - the attribute of the component to select
    • request

      public void request(JComponent component)
      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. Uses JComponent.requestFocusInWindow().
      Parameters:
      component - the component to focus
    • initial

      Returns:
      the initial focus settings
    • afterInsert

      Returns:
      the after insert focus settings