java.lang.Objectcom.realtime.crossfire.jxclient.gui.commands.ScrollResetCommand
public class ScrollResetCommand
A GUICommand which resets the scroll position of a GUIScrollable.
| Field Summary | |
|---|---|
private GUIScrollable |
scrollable
The scrollable gui element to reset. |
| Constructor Summary | |
|---|---|
ScrollResetCommand(GUIScrollable scrollable)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final GUIScrollable scrollable
| Constructor Detail |
|---|
public ScrollResetCommand(@NotNull
GUIScrollable scrollable)
scrollable - the scrollable gui element to reset| Method Detail |
|---|
public boolean canExecute()
canExecute in interface GUICommandpublic void execute()
GUICommand.canExecute()
returns false.
execute in interface GUICommand