Class DeleteSelectedAnnotationsCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
com.levigo.jadice.web.client.commands.AbstractPageViewCommand
com.levigo.jadice.web.client.commands.DeleteSelectedAnnotationsCommand
- All Implemented Interfaces:
Command
Deletes the selected annotations.
Deletes whether all selected annotations or nothing. Verifies if the selected annotations permissions grant the deletion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks if the command can be executed at the given time.void
execute()
Executes the command.Methods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageView
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContext
Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, clearInjections, execute, getKey, isSelected, isSelected, setKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.util.command.Command
getID, isAvailable, isAvailable
-
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 classAbstractPageViewCommand
- Returns:
- true if the command can be executed.
- the connected
-
execute
public void execute()Executes the command.- Specified by:
execute
in classInjectedCommand
-