public class ScrollListCommand extends java.lang.Object implements GUICommand
GUICommand
which scrolls a GUIScrollable
instance.Constructor and Description |
---|
ScrollListCommand(@NotNull GUIScrollable list,
int distance)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public ScrollListCommand(@NotNull @NotNull GUIScrollable list, int distance)
list
- the list to scrolldistance
- the distance to scrollpublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand