Interface FocusContainer

  • All Known Implementing Classes:
    Form, TabHost

    public interface FocusContainer
    Capability for a Section that manages internal focus stops; the focus manager consults it before advancing at the parent level.
    • Method Detail

      • focusTargets

        java.util.List<Section> focusTargets()
        Returns the focusable descendants this container manages internally.
        Returns:
        the focus targets, in traversal order
      • activeFocusTarget

        Section activeFocusTarget()
        Returns the currently focused internal target.
        Returns:
        the active focus target, or null when none is focused
      • advanceFocus

        boolean advanceFocus​(boolean forward)
        Moves internal focus in the given direction.
        Parameters:
        forward - true to advance, false to move back
        Returns:
        true when focus moved internally, false at an edge so the parent advances instead