public class ScrollNeverCommand extends java.lang.Object implements GUICommand
GUICommand
which scrolls a target GUIScrollable
gui element
if executed but always reports that scrolling is not possible.Constructor and Description |
---|
ScrollNeverCommand(int distance,
@NotNull GUIScrollable scrollable)
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 ScrollNeverCommand(int distance, @NotNull @NotNull GUIScrollable scrollable)
distance
- the distance to scrollscrollable
- the scrollable elementpublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand