Package com.tonic.vellum.focus
Interface FocusContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SectionactiveFocusTarget()Returns the currently focused internal target.booleanadvanceFocus(boolean forward)Moves internal focus in the given direction.java.util.List<Section>focusTargets()Returns the focusable descendants this container manages internally.
-
-
-
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
nullwhen 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
-
-