java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ScrollNeverCommand
public class ScrollNeverCommand
A GUICommand
which scrolls a target GUIScrollable
gui element
if executed but always reports that scrolling is not possible.
Field Summary | |
---|---|
private int |
distance
The distance to scroll. |
private GUIScrollable |
scrollable
The scrollable element. |
Constructor Summary | |
---|---|
ScrollNeverCommand(int distance,
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 |
---|
private final int distance
@NotNull private final GUIScrollable scrollable
Constructor Detail |
---|
public ScrollNeverCommand(int distance, @NotNull GUIScrollable scrollable)
distance
- the distance to scrollscrollable
- the scrollable elementMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand