public class PageByIndexExecutor extends AbstractInstructionExecutor<PageByIndexInstruction,Collection<Object>> implements CollectionBasedInstructionExecutor
PageByIndexInstruction
by setting the first PageView
found in the
Collection
of context objects to the specified page index.
Requires an instance of PageView
in the collection of context objects. The
PageView
must be displaying a Document
which holds a page at the requested index.
Constructor and Description |
---|
PageByIndexExecutor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecuteSpecific(PageByIndexInstruction instruction,
Collection<Object> contextObjects)
Template method for implementors.
|
void |
executeSpecific(PageByIndexInstruction instruction,
Collection<Object> contextObjects)
Template method for implementors.
|
canExecute, execute, pertainsTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canExecute, execute, pertainsTo
@CallOnEDT public boolean canExecuteSpecific(PageByIndexInstruction instruction, Collection<Object> contextObjects)
AbstractInstructionExecutor
Instruction
, using the given context object where necessary. The default
implementation does nothing and returns true
.canExecuteSpecific
in class AbstractInstructionExecutor<PageByIndexInstruction,Collection<Object>>
instruction
- the instruction in question. It is guaranteed to be non-null
.contextObjects
- holds additional, implementation-specific informationtrue
if this instance is able to execute the given Instruction
using the given context object where necessary; false
otherwise.@CallOnEDT public void executeSpecific(PageByIndexInstruction instruction, Collection<Object> contextObjects)
AbstractInstructionExecutor
Instruction
.executeSpecific
in class AbstractInstructionExecutor<PageByIndexInstruction,Collection<Object>>
instruction
- holds the information which specifies what to perform. This
Instruction
is guaranteed to be non-null
.contextObjects
- holds additional, implementation-specific informationCopyright © 2024 levigo holding gmbh. All rights reserved.