20 package net.sf.gridarta.plugin.parameter;
26 import org.jetbrains.annotations.NotNull;
32 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> {
44 private String
name =
"[name]";
60 listeners.
add(listener);
65 listeners.
remove(listener);
75 public void setName(@NotNull
final String name) {
76 if (this.name.equals(name)) {
91 if (this.description.equals(description)) {
String description
The user-provided description of the value for the user interface.
void addPluginParameterListener(@NotNull final PluginParameterListener listener)
T [] getListeners()
Returns an array of all the listeners.
final EventListenerList2< PluginParameterListener > listeners
The listeners to notify.
void setName(@NotNull final String name)
void removePluginParameterListener(@NotNull final PluginParameterListener listener)
String name
The name of the parameter for the plugin script.
AbstractPluginParameter()
Creates a new instance.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
void remove(@NotNull final T listener)
Removes a listener.
GameObjects are the objects based on Archetypes found on maps.
Interface for listeners interested in PluginParameter related events.
void add(@NotNull final T listener)
Adds a listener.
void setDescription(@NotNull final String description)
Type-safe version of EventListenerList.
void changed()
Notifies all listeners that this plugin parameter has changed.
Interface for MapArchObjects.