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