net.sf.gridarta.model.settings
public abstract class DefaultGlobalSettings extends AbstractGlobalSettings
GlobalSettings
.Modifier and Type | Field and Description |
---|---|
private static net.sf.japi.swing.action.ActionBuilder |
ACTION_BUILDER
The
ActionBuilder . |
private static String |
ARCH_DIRECTORY_KEY
The preferences key for the archetype directory.
|
private File |
archDirectory
The archetype directory.
|
private String |
archDirectoryDefault
The default value for the archetype directory.
|
private boolean |
autoPopupDocumentation
Time for an automated documentation popup.
|
private static String |
CONFIG_SOURCE_KEY
The preferences key for configuration source.
|
private String |
configSourceName
Do we load arches from the collected archives.
|
private File |
currentSaveMapDirectory
The the default directory for saving maps.
|
private static String |
DOCUMENTATION_VERSION_KEY
The preferences key for storing the last known documentation version.
|
private boolean |
hasImageSet
Whether an image set is used.
|
private boolean |
hasMediaDefaultDirectory
Whether a media directory is used.
|
private static String |
IMAGE_SET_KEY
The preferences key for the selected image set.
|
private File |
imageDirectory
The image directory.
|
private String |
imageSet
The image set.
|
private String |
imageSetDefault
The default value for the image set.
|
private static String |
MAP_DIRECTORY_KEY
The preferences key for the archetype directory.
|
private File |
mapsDirectory
The default maps directory.
|
private String |
mapsDirectoryDefault
The default value for the maps directory.
|
private static String |
MEDIA_DIRECTORY_KEY
The preferences key for the media directory.
|
private File |
mediaDirectory
The media directory.
|
private String |
mediaDirectoryDefault
The default value for the media directory.
|
private static Preferences |
preferences
Preferences.
|
private static String |
PREFERENCES_USER_NAME
Preferences key for user name.
|
private static String |
PREFERENCES_USER_NAME_DEFAULT
Preferences default value for user name.
|
private static String |
SHOW_MAIN_TOOLBAR_KEY
Key for info whether the main window's toolbar is shown.
|
SHOW_MAIN_TOOLBAR_DEFAULT
Modifier | Constructor and Description |
---|---|
protected |
DefaultGlobalSettings()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
File |
getArchDirectory()
Returns the archetype directory.
|
File |
getArchDirectoryDefault()
Returns the default archetype directory.
|
String |
getConfigSourceName()
Returns the name of the configuration source.
|
File |
getCurrentSaveMapDirectory()
Returns the default directory for saving maps.
|
File |
getImageDirectory()
Returns the directory to save images to.
|
String |
getImageSet()
Returns the image set.
|
String |
getImageSetDefault()
Returns the default image set.
|
File |
getMapsDirectory()
Returns the default maps directory.
|
File |
getMapsDirectoryDefault()
Returns the default maps directory.
|
File |
getMediaDirectory()
Returns the media directory.
|
File |
getMediaDirectoryDefault()
Returns the default media directory.
|
String |
getUserName()
Returns the user name.
|
String |
getUserNameDefault()
Returns the default user name.
|
boolean |
hasImageSet()
Returns whether an image set is used.
|
boolean |
hasMediaDirectory()
Returns whether a media directory is used.
|
boolean |
isAutoPopupDocumentation() |
boolean |
isShowMainToolbar()
Returns whether the main toolbar should be shown.
|
boolean |
saveIndices()
Returns whether indices should be saved to disk.
|
void |
setArchDirectory(File archDirectory)
Sets the archetype directory.
|
void |
setAutoPopupDocumentation(boolean autoPopupDocumentation) |
void |
setConfigSourceName(String configSourceName)
Sets the name of the configuration source.
|
void |
setCurrentSaveMapDirectory(File currentSaveMapDirectory)
Sets the default directory for saving maps.
|
void |
setImageDirectory(File imageDirectory)
Sets the directory to save created image to.
|
void |
setImageSet(String imageSet)
Sets the image set.
|
void |
setMapsDirectory(File mapsDirectory)
Sets the default maps directory.
|
private void |
setMapsDirectoryInt(File mapsDirectory,
boolean updatePreferences)
Sets the
mapsDirectory . |
void |
setMediaDirectory(File mediaDirectory)
Sets the media directory.
|
void |
setShowMainToolbar(boolean selected)
Sets whether the main toolbar should be shown.
|
void |
setUserName(String userName)
Sets the user name.
|
addGlobalSettingsListener, fireMapsDirectoryChanged, fireShowMainToolbarChanged, removeGlobalSettingsListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectedDirectory, getConfigurationDirectory, getPickmapDir
@NotNull private static final net.sf.japi.swing.action.ActionBuilder ACTION_BUILDER
ActionBuilder
.@NotNull private static final String MAP_DIRECTORY_KEY
@NotNull private static final String ARCH_DIRECTORY_KEY
@NotNull private static final String MEDIA_DIRECTORY_KEY
@NotNull private static final String IMAGE_SET_KEY
@NotNull private static final String DOCUMENTATION_VERSION_KEY
@NotNull private static final String SHOW_MAIN_TOOLBAR_KEY
@NotNull private static final String PREFERENCES_USER_NAME
@NotNull private static final String PREFERENCES_USER_NAME_DEFAULT
@NotNull private static final String CONFIG_SOURCE_KEY
@NotNull private static final Preferences preferences
@NotNull private final String mapsDirectoryDefault
private final boolean hasMediaDefaultDirectory
@NotNull private final String mediaDirectoryDefault
private final boolean hasImageSet
@NotNull private final String imageSetDefault
@NotNull private final String archDirectoryDefault
@NotNull private File archDirectory
@NotNull private File mapsDirectory
@NotNull private File mediaDirectory
@NotNull private File imageDirectory
@NotNull private String configSourceName
private boolean autoPopupDocumentation
@NotNull private File currentSaveMapDirectory
protected DefaultGlobalSettings()
@NotNull public File getArchDirectoryDefault()
@NotNull public File getArchDirectory()
public void setArchDirectory(@NotNull File archDirectory)
archDirectory
- the archetype directory@NotNull public File getMapsDirectoryDefault()
@NotNull public File getMapsDirectory()
public void setMapsDirectory(@NotNull File mapsDirectory)
mapsDirectory
- the default maps directoryprivate void setMapsDirectoryInt(@NotNull File mapsDirectory, boolean updatePreferences)
mapsDirectory
.mapsDirectory
- the new maps directoryupdatePreferences
- whether the preferences should be updatedpublic boolean hasMediaDirectory()
@NotNull public File getMediaDirectoryDefault()
@NotNull public File getMediaDirectory()
public void setMediaDirectory(@NotNull File mediaDirectory)
mediaDirectory
- the media directorypublic boolean hasImageSet()
@NotNull public String getImageSetDefault()
@NotNull public String getImageSet()
public void setImageSet(@NotNull String imageSet)
imageSet
- the image set@NotNull public File getImageDirectory()
public void setImageDirectory(@NotNull File imageDirectory)
GlobalSettings.getMapsDirectory()
and is not retained across editor restarts.imageDirectory
- the image directory@NotNull public String getConfigSourceName()
public void setConfigSourceName(@NotNull String configSourceName)
configSourceName
- the name@NotNull public File getCurrentSaveMapDirectory()
public void setCurrentSaveMapDirectory(@NotNull File currentSaveMapDirectory)
currentSaveMapDirectory
- the default directory for saving mapspublic boolean isAutoPopupDocumentation()
public void setAutoPopupDocumentation(boolean autoPopupDocumentation)
public boolean isShowMainToolbar()
public void setShowMainToolbar(boolean selected)
selected
- whether the main toolbar should be shown@NotNull public String getUserName()
@NotNull public String getUserNameDefault()
public void setUserName(@NotNull String userName)
userName
- the user namepublic boolean saveIndices()
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.