public class TurnPageCommand extends AbstractDocumentCommand
This method must be parameterized with the navigation mode. See setMode(Mode)
and
TurnPageCommand.Mode
.
Hint:
To work properly this command needs a PageView
instance in the
Context
object.
Modifier and Type | Class and Description |
---|---|
static class |
TurnPageCommand.Mode
The navigation mode.
|
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
TurnPageCommand() |
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.
|
TurnPageCommand.Mode |
getMode() |
void |
setMode(TurnPageCommand.Mode mode)
Set the navigation mode.
|
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
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.InjectedCommand.canExecute(Collection)
public void setMode(TurnPageCommand.Mode mode)
TurnPageCommand.Mode
.public TurnPageCommand.Mode getMode()
Copyright © 2024 levigo holding gmbh. All rights reserved.