Interface ListArea.Transition

All Known Implementing Classes:
ListUtils.DefaultTransition, ListUtils.DoubleLevelTransition, WebSearchPopup.Transition
Enclosing class:
ListArea<E>

public static interface ListArea.Transition
Defines how the hot point moves in response to navigation commands (arrow keys, page up/down, home/end). The transition logic can be customised by providing a different implementation.
  • Method Details

    • transition

      ListArea.Transition.State transition(ListArea.Transition.Type type, ListArea.Transition.State fromState, int itemCount, boolean hasEmptyLineTop, boolean hasEmptyLineBottom)
      Computes the new state after a navigation action.
      Parameters:
      type - the type of navigation action
      fromState - the current state of the hot point
      itemCount - the total number of items in the model
      hasEmptyLineTop - whether the list has a top empty line
      hasEmptyLineBottom - whether the list has a bottom empty line
      Returns:
      the new state after the transition; never null