Class ScrollNextCommand

  • All Implemented Interfaces:
    GUICommand

    public class ScrollNextCommand
    extends java.lang.Object
    implements GUICommand
    A GUICommand which transfers the focus between two gui elements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • ScrollNextCommand

        public ScrollNextCommand​(@NotNull
                                 @NotNull ActivatableGUIElement nextElement,
                                 @NotNull
                                 @NotNull ActivatableGUIElement prevElement,
                                 boolean apply)
        Creates a new instance.
        Parameters:
        nextElement - the element to activate
        prevElement - the element to deactivate
        apply - whether nextElement should be applied
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed