java.lang.Objectcom.realtime.crossfire.jxclient.gui.commands.MoveSelectionCommand
public class MoveSelectionCommand
A GUICommand which moves the selected element in a GUIList
element.
| Field Summary | |
|---|---|
private int |
diffElements
The distance in elements to scroll. |
private int |
diffLines
The distance in lines to scroll. |
private GUIList |
list
The list to scroll. |
| Constructor Summary | |
|---|---|
MoveSelectionCommand(GUIList list,
int diffLines,
int diffElements)
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 diffElements
private final int diffLines
@NotNull private final GUIList list
| Constructor Detail |
|---|
public MoveSelectionCommand(@NotNull
GUIList list,
int diffLines,
int diffElements)
list - the list to scrolldiffLines - the distance in lines to scrolldiffElements - the distance in elements to scroll| Method Detail |
|---|
public boolean canExecute()
canExecute in interface GUICommandpublic void execute()
GUICommand.canExecute()
returns false.
execute in interface GUICommand