Class DeleteSelectedAnnotationsCommand

All Implemented Interfaces:
Command

public class DeleteSelectedAnnotationsCommand extends AbstractPageViewCommand
Deletes the selected annotations.

Deletes whether all selected annotations or nothing. Verifies if the selected annotations permissions grant the deletion.

  • Constructor Details

    • DeleteSelectedAnnotationsCommand

      public DeleteSelectedAnnotationsCommand()
  • Method Details

    • canExecute

      protected boolean canExecute()
      Checks if the command can be executed at the given time.
      Expected preconditions:
      • the connected PageView is created
      • the permissions of all selected annotations grant the deletion
      Overrides:
      canExecute in class AbstractPageViewCommand
      Returns:
      true if the command can be executed.
    • execute

      public void execute()
      Executes the command.
      Specified by:
      execute in class InjectedCommand