public abstract class ExternalTargetExecutor<I extends Instruction> extends AbstractInstructionExecutor<I,Collection<Object>>
URI
or a String.
Sub-classes can use one of the "showTargetInGUI" methods to show a dialog which lets the user decide what shall happen:
Requires no specific elements in the collection of context objects, but if there is a
JFrame
or PageView
in the context collection, that component will be used to
position the dialog.
Constructor and Description |
---|
ExternalTargetExecutor(Class<I> instructionClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
showTargetInGUI(String target,
Collection<Object> context)
Opens an
ExternalTargetDialog to show the given string target. |
protected void |
showTargetInGUI(URI target,
Collection<Object> context)
Opens an
ExternalTargetDialog to show the given URI target. |
canExecute, canExecuteSpecific, execute, executeSpecific, pertainsTo
@CallOnEDT protected void showTargetInGUI(String target, Collection<Object> context)
ExternalTargetDialog
to show the given string target.target
- the String targetcontext
- the context objects@CallOnEDT protected void showTargetInGUI(URI target, Collection<Object> context)
ExternalTargetDialog
to show the given URI
target.target
- the URI targetcontext
- the context objectsCopyright © 2024 levigo holding gmbh. All rights reserved.