Class ScrollNextCommand
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.commands.ScrollNextCommand
-
- All Implemented Interfaces:
GUICommand
public class ScrollNextCommand extends java.lang.Object implements GUICommand
AGUICommandwhich transfers the focus between two gui elements.
-
-
Constructor Summary
Constructors Constructor Description ScrollNextCommand(@NotNull ActivatableGUIElement nextElement, @NotNull ActivatableGUIElement prevElement, boolean apply)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()Returns whether this command may be executed.voidexecute()Executes the command.
-
-
-
Constructor Detail
-
ScrollNextCommand
public ScrollNextCommand(@NotNull @NotNull ActivatableGUIElement nextElement, @NotNull @NotNull ActivatableGUIElement prevElement, boolean apply)Creates a new instance.- Parameters:
nextElement- the element to activateprevElement- the element to deactivateapply- whethernextElementshould be applied
-
-
Method Detail
-
canExecute
public boolean canExecute()
Description copied from interface:GUICommandReturns whether this command may be executed.- Specified by:
canExecutein interfaceGUICommand- Returns:
- whether this command may be executed
-
execute
public void execute()
Description copied from interface:GUICommandExecutes the command. Does nothing if called whileGUICommand.canExecute()returnsfalse.- Specified by:
executein interfaceGUICommand
-
-