 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.plugin.parameter;
22 import java.util.Collection;
23 import java.util.concurrent.CopyOnWriteArrayList;
27 import org.jetbrains.annotations.NotNull;
33 public abstract class AbstractPluginParameter<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>, V> implements
PluginParameter<G, A, R, V> {
39 private final Collection<PluginParameterListener>
listeners =
new CopyOnWriteArrayList<>();
45 private String
name =
"[name]";
77 if (this.name.equals(
name)) {
String description
The user-provided description of the value for the user interface.
Base package of all Gridarta classes.
String name
The name of the parameter for the plugin script.
void addPluginParameterListener(@NotNull final PluginParameterListener listener)
void setDescription(@NotNull final String description)
final Collection< PluginParameterListener > listeners
The listeners to notify.
Interface for listeners interested in PluginParameter related events.
void setName(@NotNull final String name)
Reflects a game object (object on a map).
void changed()
Notifies all listeners that this plugin parameter has changed.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
AbstractPluginParameter()
Creates a new instance.
void removePluginParameterListener(@NotNull final PluginParameterListener listener)