Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand:
Collaboration graph

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
 

Detailed Description

A GUICommand which transfers the focus between two gui elements.

Author
Andreas Kirschbaum

Definition at line 34 of file ScrollNextCommand.java.

Constructor & Destructor Documentation

◆ ScrollNextCommand()

com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.ScrollNextCommand ( @NotNull final ActivatableGUIElement  nextElement,
@NotNull final ActivatableGUIElement  prevElement,
final boolean  apply 
)

Creates a new instance.

Parameters
nextElementthe element to activate
prevElementthe element to deactivate
applywhether 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.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 66 of file ScrollNextCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.execute ( )

Member Data Documentation

◆ apply

final boolean com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.apply
private

◆ nextElement

final ActivatableGUIElement com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.nextElement
private

◆ prevElement

final ActivatableGUIElement com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.prevElement
private

The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand.nextElement
final ActivatableGUIElement nextElement
Definition: ScrollNextCommand.java:40