20 package net.sf.gridarta.model.exitconnector;
23 import org.jetbrains.annotations.NotNull;
24 import org.jetbrains.annotations.Nullable;
68 if (exitLocation == null ? this.exitLocation == null : exitLocation.equals(
this.exitLocation)) {
74 listener.exitLocationChanged(exitLocation);
85 if (this.pasteExitName == pasteExitName) {
92 listener.pasteExitNameChanged(pasteExitName);
103 if (this.autoCreateExit == autoCreateExit) {
110 listener.autoCreateExitChanged(autoCreateExit);
122 if (this.exitArchetypeName.equals(exitArchetypeName)) {
129 listener.exitArchetypeNameChanged(exitArchetypeName);
135 listeners.
add(listener);
140 listeners.
remove(listener);
abstract void savePasteExitName(boolean pasteExitName)
Sets the stored attribute value for pasteExitName.
abstract String loadExitArchetypeName()
Returns the stored attribute value for exitArchetypeName.
String getExitArchetypeName()
Returns the archetype name when creating exit game objects.
T [] getListeners()
Returns an array of all the listeners.
final EventListenerList2< ExitConnectorModelListener > listeners
The listeners to notify.
abstract void saveAutoCreateExit(boolean autoCreateExit)
Sets the stored attribute value for isAutoCreateExit().
Base package of all Gridarta classes.
boolean autoCreateExit
Whether exit game objects should be auto-created when needed.
void remove(@NotNull final T listener)
Removes a listener.
void add(@NotNull final T listener)
Adds a listener.
boolean isPasteExitName()
Returns whether the exit name should be updated.
void addExitConnectorModelListener(@NotNull final ExitConnectorModelListener listener)
Adds an ExitConnectorModelListener to be notified of changes.
void setAutoCreateExit(final boolean autoCreateExit)
Sets whether exit game objects should be auto-created when needed.
Type-safe version of EventListenerList.
Stores information needed by the exit connector.
ExitLocation exitLocation
Whether an exit has been remembered.
Stores information about a remembered exit location.
String exitArchetypeName
The archetype to insert when creating new exit game objects.
boolean pasteExitName
Whether the exit's name should be set when pasted.
void setExitLocation(@Nullable final ExitLocation exitLocation)
Sets the remembered exit location.
boolean isAutoCreateExit()
Returns whether exit game objects should be auto-created when needed.
abstract void saveExitArchetypeName(@NotNull String exitArchetypeName)
Sets the stored attribute value for setExitArchetypeName(String).
void setPasteExitName(final boolean pasteExitName)
Sets whether the exit name should be updated.
void setExitArchetypeName(@NotNull final String exitArchetypeName)
Sets the archetype name for creating exit game objects.
Interface for listeners interested in ExitConnectorModel related events.
abstract boolean loadAutoCreateExit()
Returns the stored attribute value for autoCreateExit.
ExitLocation getExitLocation()
Returns the remembered exit location.
void removeExitConnectorModelListener(@NotNull final ExitConnectorModelListener listener)
Removes an ExitConnectorModelListener to be notified of changes.
Stores information needed by the exit connector.
abstract boolean loadPasteExitName()
Returns the stored attribute value for pasteExitName.