public class CreateTextHighlightAnnotationCommand extends AbstractDocumentCommand
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
CreateTextHighlightAnnotationCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecute()
Subclasses may override this method to perform argument validation beyond the validation that
happens automatically during the injection phase.
|
protected void |
execute()
This method is called in order to execute the command.
|
static AnnotationProfile |
getProfile(Document document) |
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
public CreateTextHighlightAnnotationCommand()
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractDocumentCommand
true
if the command can/may be executed in the current context,
false
otherwise.public static AnnotationProfile getProfile(Document document)
Copyright © 2024 levigo holding gmbh. All rights reserved.