java.lang.Objectcom.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand
public class ScrollNextCommand
A GUICommand which transfers the focus between two gui elements.
| Field Summary | |
|---|---|
private boolean |
apply
Whether nextElement should be applied. |
private ActivatableGUIElement |
nextElement
The element to activate. |
private ActivatableGUIElement |
prevElement
The element to deactivate. |
| Constructor Summary | |
|---|---|
ScrollNextCommand(ActivatableGUIElement nextElement,
ActivatableGUIElement prevElement,
boolean apply)
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 boolean apply
nextElement should be applied.
@NotNull private final ActivatableGUIElement nextElement
@NotNull private final ActivatableGUIElement prevElement
| Constructor Detail |
|---|
public ScrollNextCommand(@NotNull
ActivatableGUIElement nextElement,
@NotNull
ActivatableGUIElement prevElement,
boolean apply)
nextElement - the element to activateprevElement - the element to deactivateapply - whether nextElement should be applied| Method Detail |
|---|
public boolean canExecute()
canExecute in interface GUICommandpublic void execute()
GUICommand.canExecute()
returns false.
execute in interface GUICommand