public class PluginView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
PluginView(PluginController<G,A,R> pluginController,
PluginModel<G,A,R> pluginModel,
PluginParameterViewFactory<G,A,R> pluginParameterViewFactory,
ResourceIcons resourceIcons)
Creates a PluginView.
|
Modifier and Type | Method and Description |
---|---|
bsh.ConsoleInterface |
createConsole(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getRunValues(Plugin<G,A,R> plugin,
java.awt.Component parent)
Asks the user for input parameter to run a plugin.
|
void |
setMenu(javax.swing.JMenu menuScripts)
Set the menu to add script commands to.
|
public PluginView(@NotNull PluginController<G,A,R> pluginController, @NotNull PluginModel<G,A,R> pluginModel, @NotNull PluginParameterViewFactory<G,A,R> pluginParameterViewFactory, @NotNull ResourceIcons resourceIcons)
pluginController
- controller of this PluginViewpluginModel
- the script modelresourceIcons
- the resource icons for creating iconspublic void setMenu(@Nullable javax.swing.JMenu menuScripts)
menuScripts
- the plugins menu@NotNull public bsh.ConsoleInterface createConsole(@NotNull java.lang.String name)
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getRunValues(@NotNull Plugin<G,A,R> plugin, @NotNull java.awt.Component parent)
plugin
- the pluginparent
- the parent component for dialogsnull
to not run the plugin