Class MoveSelectionCommand

    • Constructor Summary

      Constructors 
      Constructor Description
      MoveSelectionCommand​(@NotNull GUIList<?> list, int diffLines, int diffElements)
      Creates a new instance.
    • 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

      • MoveSelectionCommand

        public MoveSelectionCommand​(@NotNull
                                    @NotNull GUIList<?> list,
                                    int diffLines,
                                    int diffElements)
        Creates a new instance.
        Parameters:
        list - the list to scroll
        diffLines - the distance in lines to scroll
        diffElements - the distance in elements to scroll
    • 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