Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
MoveSelectionCommand (@NotNull final GUIList<?> list, final int diffLines, final int diffElements) | |
Private Attributes | |
final int | diffElements |
final int | diffLines |
final GUIList<?> | list |
A GUICommand which moves the selection in a GUIList element.
Definition at line 33 of file MoveSelectionCommand.java.
com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.MoveSelectionCommand | ( | @NotNull final GUIList<?> | list, |
final int | diffLines, | ||
final int | diffElements | ||
) |
Creates a new instance.
list | the list to scroll |
diffLines | the distance in lines to scroll |
diffElements | the distance in elements to scroll |
Definition at line 57 of file MoveSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffElements, com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffLines, and com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.list.
boolean com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 64 of file MoveSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.canMoveSelection(), com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.canScroll(), com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffElements, com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffLines, and com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.list.
void com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 69 of file MoveSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.canMoveSelection(), com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffElements, com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.diffLines, com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.list, com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.moveSelection(), and com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.scroll().
|
private |
The distance in elements to scroll.
Definition at line 49 of file MoveSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.MoveSelectionCommand().
|
private |
The distance in lines to scroll.
Definition at line 44 of file MoveSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.MoveSelectionCommand().
|
private |
The list to scroll.
Definition at line 39 of file MoveSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand.MoveSelectionCommand().