public class ScrollNextCommand extends java.lang.Object implements GUICommand
GUICommand
which transfers the focus between two gui elements.Constructor and Description |
---|
ScrollNextCommand(@NotNull ActivatableGUIElement nextElement,
@NotNull ActivatableGUIElement prevElement,
boolean apply)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public ScrollNextCommand(@NotNull @NotNull ActivatableGUIElement nextElement, @NotNull @NotNull ActivatableGUIElement prevElement, boolean apply)
nextElement
- the element to activateprevElement
- the element to deactivateapply
- whether nextElement
should be appliedpublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand