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