Class EntityTableModelInspector

java.lang.Object
is.codion.swing.framework.ui.inspect.EntityTableModelInspector
All Implemented Interfaces:
UiInspector

public final class EntityTableModelInspector extends Object implements UiInspector
A UiInspector exposing the state of the EntityTableModel behind the focus owner's enclosing EntityTablePanel — the row count and the selection. Located via ServiceLoader, so the consumer stays framework-agnostic.
  • Constructor Details

    • EntityTableModelInspector

      public EntityTableModelInspector()
  • Method Details

    • state

      public Optional<Map<String,Object>> state(Component focusOwner)
      Specified by:
      state in interface UiInspector
      Parameters:
      focusOwner - the component to inspect, typically the current focus owner
      Returns:
      a description of the state behind the given component, or an empty Optional if this inspector does not apply to it