Package net.sf.gridarta.model.settings
Class AbstractDefaultProjectSettings
- java.lang.Object
-
- net.sf.gridarta.model.settings.AbstractProjectSettings
-
- net.sf.gridarta.model.settings.AbstractDefaultProjectSettings
-
- All Implemented Interfaces:
ProjectSettings
- Direct Known Subclasses:
AtrinikDefaultProjectSettings,CrossfireDefaultProjectSettings,DaimoninDefaultProjectSettings
public abstract class AbstractDefaultProjectSettings extends AbstractProjectSettings
Default implementation ofProjectSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDefaultProjectSettings(@NotNull EditorSettings editorSettings)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.FilegetArchDirectory()Returns the archetype directory.@NotNull java.lang.StringgetConfigSourceName()Returns the name of the configuration source.@NotNull java.lang.StringgetImageSet()Returns the image set.@NotNull java.io.FilegetMapsDirectory()Returns the default maps directory.@NotNull java.io.FilegetMediaDirectory()Returns the media directory.@NotNull java.lang.StringgetUserName()Returns the user name.booleansaveIndices()Returns whether indices should be saved to disk.voidsetArchDirectory(@NotNull java.io.File archDirectory)Sets the archetype directory.voidsetConfigSourceName(@NotNull java.lang.String configSourceName)Sets the name of the configuration source.voidsetImageSet(@NotNull java.lang.String imageSet)Sets the image set.voidsetMapsDirectory(@NotNull java.io.File mapsDirectory)Sets the default maps directory.voidsetMediaDirectory(@NotNull java.io.File mediaDirectory)Sets the media directory.voidsetUserName(@NotNull java.lang.String userName)Sets the user name.-
Methods inherited from class net.sf.gridarta.model.settings.AbstractProjectSettings
addProjectSettingsListener, fireMapsDirectoryChanged, removeProjectSettingsListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.model.settings.ProjectSettings
getCollectedDirectory, getConfigurationDirectory, getPickmapDir
-
-
-
-
Constructor Detail
-
AbstractDefaultProjectSettings
protected AbstractDefaultProjectSettings(@NotNull @NotNull EditorSettings editorSettings)Creates a new instance.- Parameters:
editorSettings- the editor settings for retrieving default values
-
-
Method Detail
-
getArchDirectory
@NotNull public @NotNull java.io.File getArchDirectory()
Description copied from interface:ProjectSettingsReturns the archetype directory.- Returns:
- the archetype directory
-
setArchDirectory
public void setArchDirectory(@NotNull @NotNull java.io.File archDirectory)Description copied from interface:ProjectSettingsSets the archetype directory.- Parameters:
archDirectory- the archetype directory
-
getMapsDirectory
@NotNull public @NotNull java.io.File getMapsDirectory()
Description copied from interface:ProjectSettingsReturns the default maps directory.- Returns:
- the default maps directory
-
setMapsDirectory
public void setMapsDirectory(@NotNull @NotNull java.io.File mapsDirectory)Description copied from interface:ProjectSettingsSets the default maps directory.- Parameters:
mapsDirectory- the default maps directory
-
getMediaDirectory
@NotNull public @NotNull java.io.File getMediaDirectory()
Description copied from interface:ProjectSettingsReturns the media directory. It contains background music files.- Returns:
- the media directory
-
setMediaDirectory
public void setMediaDirectory(@NotNull @NotNull java.io.File mediaDirectory)Description copied from interface:ProjectSettingsSets the media directory. It contains background music files.- Parameters:
mediaDirectory- the media directory
-
getImageSet
@NotNull public @NotNull java.lang.String getImageSet()
Description copied from interface:ProjectSettingsReturns the image set.- Returns:
- the image set
-
setImageSet
public void setImageSet(@NotNull @NotNull java.lang.String imageSet)Description copied from interface:ProjectSettingsSets the image set.- Parameters:
imageSet- the image set
-
getConfigSourceName
@NotNull public @NotNull java.lang.String getConfigSourceName()
Description copied from interface:ProjectSettingsReturns the name of the configuration source.- Returns:
- the name of the configuration source
-
setConfigSourceName
public void setConfigSourceName(@NotNull @NotNull java.lang.String configSourceName)Description copied from interface:ProjectSettingsSets the name of the configuration source.- Parameters:
configSourceName- the name
-
getUserName
@NotNull public @NotNull java.lang.String getUserName()
Description copied from interface:ProjectSettingsReturns the user name.- Returns:
- the user name
-
setUserName
public void setUserName(@NotNull @NotNull java.lang.String userName)Description copied from interface:ProjectSettingsSets the user name.- Parameters:
userName- the user name
-
saveIndices
public boolean saveIndices()
Description copied from interface:ProjectSettingsReturns whether indices should be saved to disk.- Returns:
- whether indices should be saved to disk
-
-