public class InstructionExecutorCommand extends AbstractContextCommand
CollectionBasedInstructionExecutor
s to be used in a
GUI (Swing) context.Constructor and Description |
---|
InstructionExecutorCommand() |
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.
|
InstructionChain |
getInstructionChain() |
InstructionExecutorInventory |
getInstructionExecutorInventory() |
void |
setInstructionChain(InstructionChain instructionChain)
Deprecated.
To be used by injection exclusively.
|
void |
setInstructionExecutorInventory(InstructionExecutorInventory instructionExecutorInventory)
Deprecated.
To be used by injection exclusively.
|
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
public InstructionChain getInstructionChain()
InstructionChain
holding the Instruction
to be executed using the
InstructionExecutor
s supplied by
getInstructionExecutorInventory()
.@Deprecated public void setInstructionChain(InstructionChain instructionChain)
Developers should not invoke this method in any direct way.
public InstructionExecutorInventory getInstructionExecutorInventory()
InstructionExecutor
s to be used for executing the Instruction
s
supplied by getInstructionChain()
.@Deprecated public void setInstructionExecutorInventory(InstructionExecutorInventory instructionExecutorInventory)
Developers should not invoke this method in any direct way.
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class InjectedCommand
true
if the command can/may be executed in the current context,
false
otherwise.protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
Copyright © 2024 levigo holding gmbh. All rights reserved.