Class ListUtils.DoubleLevelTransition<E>

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

public abstract static class ListUtils.DoubleLevelTransition<E> extends ListUtils.DefaultTransition
  • Field Details

  • Constructor Details

    • DoubleLevelTransition

      public DoubleLevelTransition(ListArea.Model<E> model)
  • Method Details

    • isSectionItem

      public abstract boolean isSectionItem(E item)
    • 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
      Overrides:
      transition in class ListUtils.DefaultTransition
      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