Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
ScrollNextCommand (@NotNull final ActivatableGUIElement nextElement, @NotNull final ActivatableGUIElement prevElement, final boolean apply) | |
Private Attributes | |
final boolean | apply |
final ActivatableGUIElement | nextElement |
final ActivatableGUIElement | prevElement |
A GUICommand which transfers the focus between two gui elements.
Definition at line 34 of file ScrollNextCommand.java.
com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.ScrollNextCommand | ( | @NotNull final ActivatableGUIElement | nextElement, |
@NotNull final ActivatableGUIElement | prevElement, | ||
final boolean | apply | ||
) |
Creates a new instance.
nextElement | the element to activate |
prevElement | the element to deactivate |
apply | whether should be applied |
Definition at line 59 of file ScrollNextCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.apply, com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.nextElement, and com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.prevElement.
boolean com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 66 of file ScrollNextCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 71 of file ScrollNextCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.apply, com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.execute(), com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.isActive(), com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.nextElement, com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.prevElement, and com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.setActive().
|
private |
Whether nextElement should be applied.
Definition at line 51 of file ScrollNextCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.ScrollNextCommand().
|
private |
The element to activate.
Definition at line 40 of file ScrollNextCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.ScrollNextCommand().
|
private |
The element to deactivate.
Definition at line 46 of file ScrollNextCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.ScrollNextCommand().