Package org.luwrain.controls
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.controls.ListArea.Transition
ListArea.Transition.State, ListArea.Transition.Type -
Field Summary
FieldsFields inherited from class org.luwrain.controls.ListUtils.DefaultTransition
PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisSectionItem(E item) transition(ListArea.Transition.Type type, ListArea.Transition.State fromState, int itemCount, boolean hasEmptyLineTop, boolean hasEmptyLineBottom) Computes the new state after a navigation action.
-
Field Details
-
model
-
-
Constructor Details
-
DoubleLevelTransition
-
-
Method Details
-
isSectionItem
-
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.TransitionComputes the new state after a navigation action.- Specified by:
transitionin interfaceListArea.Transition- Overrides:
transitionin classListUtils.DefaultTransition- Parameters:
type- the type of navigation actionfromState- the current state of the hot pointitemCount- the total number of items in the modelhasEmptyLineTop- whether the list has a top empty linehasEmptyLineBottom- whether the list has a bottom empty line- Returns:
- the new state after the transition; never
null
-