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 booleanChecks if the command can be executed at the given time.voidexecute()Executes the command.Methods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageViewMethods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContextMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, clearInjections, execute, getKey, isSelected, isSelected, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
PageViewis created - the permissions of all selected annotations grant the deletion
- Overrides:
canExecutein classAbstractPageViewCommand- Returns:
- true if the command can be executed.
- the connected
-
execute
public void execute()Executes the command.- Specified by:
executein classInjectedCommand
-