public class ScrollResetCommand extends java.lang.Object implements GUICommand
GUICommand
which resets the scroll position of a GUIScrollable
.Modifier and Type | Field and Description |
---|---|
private GUIScrollable |
scrollable
The scrollable gui element to reset.
|
Constructor and Description |
---|
ScrollResetCommand(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.
|
@NotNull private final GUIScrollable scrollable
public ScrollResetCommand(@NotNull GUIScrollable scrollable)
scrollable
- the scrollable gui element to resetpublic boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.execute
in interface GUICommand