public class GradationCommand extends AbstractDocumentCommand
Hint:
To work properly this commands needs a PageView
instance in the
Context
object.
Optional, as command parameter at index position 0, a decision flag can be set, if the gradation
should be applied on the whole document or just on the currently displayed page of the viewer
instance in the context object. Valid parameter values are document
or
page
. If this parameter is not set or set to any other value, document execution is
assumed.
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
GradationCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
This method is called in order to execute the command.
|
protected GradationFrame |
getGradationFrame()
Returns the gradation frame which is contained in the given collection and has the same scope
as this command instance.
|
boolean |
isSelected()
Returns the selected state of this command.
|
void |
setScopeFrames(Collection<GradationFrame> scopeFrames)
Deprecated.
Will be used by injection exclusively.
|
canExecute, getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, setKey
@Deprecated public void setScopeFrames(Collection<GradationFrame> scopeFrames)
Developers should not invoke this method in any direct way.
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected GradationFrame getGradationFrame()
null
will be
returned.public boolean isSelected()
InjectedCommand
isSelected
in class InjectedCommand
Copyright © 2024 levigo holding gmbh. All rights reserved.