public class DocumentByWeakRefExecutor extends AbstractInstructionExecutor<DocumentByWeakRefInstruction,Collection<Object>> implements CollectionBasedInstructionExecutor
DocumentByWeakRefInstruction
by setting its Document
in the first
PageView
found in the collection of context objects.
Requires an instance of PageView
in the collection of context objects.
Constructor and Description |
---|
DocumentByWeakRefExecutor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecuteSpecific(DocumentByWeakRefInstruction instruction,
Collection<Object> contextObjects)
Template method for implementors.
|
void |
executeSpecific(DocumentByWeakRefInstruction 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(DocumentByWeakRefInstruction 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<DocumentByWeakRefInstruction,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(DocumentByWeakRefInstruction instruction, Collection<Object> contextObjects)
AbstractInstructionExecutor
Instruction
.executeSpecific
in class AbstractInstructionExecutor<DocumentByWeakRefInstruction,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.