Package org.luwrain.controls
Class ListArea.Transition.State
java.lang.Object
org.luwrain.controls.ListArea.Transition.State
- Enclosing interface:
ListArea.Transition
Represents a possible state of the hot point: on an empty line
(top or bottom), on a specific item index, or no transition
possible.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the state. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe item index if type isITEM_INDEX, otherwise -1.The type of this state. -
Constructor Summary
ConstructorsConstructorDescriptionState(int itemIndex) Creates a state representing an item index.Creates a state with the given type and no item index. -
Method Summary
-
Field Details
-
type
The type of this state. -
itemIndex
public final int itemIndexThe item index if type isITEM_INDEX, otherwise -1.
-
-
Constructor Details
-
State
Creates a state with the given type and no item index.- Parameters:
type- the state type (must not benull)- Throws:
NullPointerException- iftypeisnull
-
State
public State(int itemIndex) Creates a state representing an item index.- Parameters:
itemIndex- the index of the item
-