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, wait
getParameterType, getStringValue, getValue, getValueOrNull, setStringValue, visit
protected AbstractPluginParameter()
public void addPluginParameterListener(@NotNull @NotNull PluginParameterListener listener)
PluginParameter
listener
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)
PluginParameter
listener
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()
PluginParameter
public void setName(@NotNull @NotNull java.lang.String name)
PluginParameter
@NotNull public @NotNull java.lang.String getDescription()
PluginParameter
getDescription
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)
PluginParameter
setDescription
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()