22 package com.realtime.crossfire.jxclient.gui.commands;
26 import org.jetbrains.annotations.NotNull;
A GUICommand which moves the selected element in a GUIList element.
final int diffLines
The distance in lines to scroll.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
boolean canMoveSelection(final int diffLines, final int diffElements)
Returns whether the selection can be moved.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
final GUIList<?> list
The list to scroll.
boolean canScroll(final int distance)
Returns whether the list can be scrolled.
void moveSelection(final int diffLines, final int diffElements)
Moves the selection.
MoveSelectionCommand(@NotNull final GUIList<?> list, final int diffLines, final int diffElements)
Creates a new instance.
final int diffElements
The distance in elements to scroll.
A GUIElement that displays a list of entries.
void scroll(final int distance)
Moves the list.