Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
ScrollListCommand (@NotNull final GUIScrollable list, final int distance) | |
Private Attributes | |
final int | distance |
final GUIScrollable | list |
A GUICommand which scrolls a GUIScrollable instance.
Definition at line 33 of file ScrollListCommand.java.
com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.ScrollListCommand | ( | @NotNull final GUIScrollable | list, |
final int | distance | ||
) |
Creates a new instance.
list | the list to scroll |
distance | the distance to scroll |
Definition at line 51 of file ScrollListCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance, and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list.
boolean com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 57 of file ScrollListCommand.java.
References com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable.canScroll(), com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance, and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list.
void com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 62 of file ScrollListCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance, com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list, and com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable.scroll().
|
private |
The distance to scroll.
Definition at line 44 of file ScrollListCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.ScrollListCommand().
|
private |
The list to scroll.
Definition at line 39 of file ScrollListCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.ScrollListCommand().