Class ListUtils.DefaultTransition

java.lang.Object
org.luwrain.controls.ListUtils.DefaultTransition
All Implemented Interfaces:
ListArea.Transition
Direct Known Subclasses:
ListUtils.DoubleLevelTransition
Enclosing class:
ListUtils

public static class ListUtils.DefaultTransition extends Object implements ListArea.Transition
  • Field Details

  • Constructor Details

    • DefaultTransition

      public DefaultTransition()
  • Method Details

    • transition

      public ListArea.Transition.State transition(ListArea.Transition.Type type, ListArea.Transition.State fromState, int itemCount, boolean hasEmptyLineTop, boolean hasEmptyLineBottom)
      Description copied from interface: ListArea.Transition
      Computes the new state after a navigation action.
      Specified by:
      transition in interface ListArea.Transition
      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