public abstract class AbstractPluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V> extends java.lang.Object implements PluginParameter<G,A,R,V>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginParameter()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPluginParameterListener(@NotNull PluginParameterListener listener)
Adds a
listener to be notified. |
protected void |
changed()
Notifies all listeners that this plugin parameter has changed.
|
@NotNull java.lang.String |
getDescription()
The user-provided description of the value for the user interface.
|
@NotNull java.lang.String |
getName()
The name of the parameter.
|
void |
removePluginParameterListener(@NotNull PluginParameterListener listener)
Removes a
listener to be notified. |
void |
setDescription(@NotNull java.lang.String description)
Sets the user-provided description of the value for the user interface.
|
void |
setName(@NotNull java.lang.String name)
Sets the name of the parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterType, getStringValue, getValue, getValueOrNull, setStringValue, visitprotected AbstractPluginParameter()
public void addPluginParameterListener(@NotNull
@NotNull PluginParameterListener listener)
PluginParameterlistener to be notified.addPluginParameterListener in interface PluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V>listener - the listenerpublic void removePluginParameterListener(@NotNull
@NotNull PluginParameterListener listener)
PluginParameterlistener to be notified.removePluginParameterListener in interface PluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V>listener - the listener@NotNull public @NotNull java.lang.String getName()
PluginParameterpublic void setName(@NotNull
@NotNull java.lang.String name)
PluginParameter@NotNull public @NotNull java.lang.String getDescription()
PluginParametergetDescription in interface PluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V>public void setDescription(@NotNull
@NotNull java.lang.String description)
PluginParametersetDescription in interface PluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V>description - the descriptionprotected void changed()