daoc.editor.model
Class Settings

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bydaoc.editor.model.Settings
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Settings
extends java.util.Properties

Persistent settings.

See Also:
Serialized Form

Field Summary
static java.lang.String AUTO_LOAD
           
static java.lang.String CUSTOM_DIR
           
static java.lang.String[] encodings
           
static java.lang.String FILENAME
           
static java.lang.String GAME_DIR
           
static java.lang.String GD_EXT
           
static java.lang.String MISC_LEFTCLICK
           
static java.lang.String MISC_REMEMBERSIZES
           
static java.lang.String PREVIEW_BG_IMAGE
           
static java.lang.String PREVIEW_COL_BG
           
static java.lang.String PREVIEW_COL_SELECT
           
static java.lang.String PREVIEW_SHOW_BG
           
static java.lang.String PREVIEW_SIZE
           
static java.lang.String[] previewSizes
           
static java.lang.String SAVE_ENCODING
           
static java.lang.String SAVE_INDENT
           
static java.lang.String SAVE_SPACELINES
           
static java.lang.String SAVE_TAGLINE
           
static java.lang.String SHOW_DELETE_WARN
           
static java.lang.String SHOW_SPLASH
           
static java.lang.String SHOW_WARNING
           
static java.awt.Dimension[] sizes
           
static java.lang.String TB_COMPASS_SIZE
           
static java.lang.String TB_PERFMON_SIZE
           
static java.lang.String TB_RESIZE_FONT
           
static java.lang.String TIMES_LOADED
           
 
Constructor Summary
Settings()
           
 
Method Summary
 void addPropertyChangeListener(IPropertyChangeListener l)
           
 boolean autoLoad()
           
 boolean closeOnLeftClick()
           
 boolean compassSmall()
           
 java.lang.String getBackgroundFile()
           
 java.awt.Color getBgColor()
           
static java.awt.Color getColor(java.lang.String value)
           
 int getEncoding()
           
 java.lang.String getGameDir()
           
 int getInt(java.lang.String key, int defaultValue)
           
 java.awt.Dimension getPreviewSize()
           
 int getSaveIndent()
           
 int getSaveSpaceLines()
           
 java.awt.Color getSelectColor()
           
 java.lang.String getTagLine()
           
 int getTimesLoaded()
           
 void incTimesLoaded()
           
 void load()
           
 boolean perfMonSmall()
           
 boolean rememberDialogSizes()
           
 void removePropertyChangeListener(IPropertyChangeListener l)
           
 void save()
           
 void setDefaults()
           
 java.lang.Object setProperty(java.lang.String arg0, java.lang.String arg1)
           
 boolean showBackground()
           
 boolean showDeleteWarning()
           
 boolean showSplash()
           
static boolean validateGameDir(java.lang.String gameDir)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FILENAME

public static final java.lang.String FILENAME
See Also:
Constant Field Values

CUSTOM_DIR

public static final java.lang.String CUSTOM_DIR
See Also:
Constant Field Values

GAME_DIR

public static final java.lang.String GAME_DIR
See Also:
Constant Field Values

SHOW_WARNING

public static final java.lang.String SHOW_WARNING
See Also:
Constant Field Values

AUTO_LOAD

public static final java.lang.String AUTO_LOAD
See Also:
Constant Field Values

SHOW_DELETE_WARN

public static final java.lang.String SHOW_DELETE_WARN
See Also:
Constant Field Values

SHOW_SPLASH

public static final java.lang.String SHOW_SPLASH
See Also:
Constant Field Values

PREVIEW_SHOW_BG

public static final java.lang.String PREVIEW_SHOW_BG
See Also:
Constant Field Values

PREVIEW_BG_IMAGE

public static final java.lang.String PREVIEW_BG_IMAGE
See Also:
Constant Field Values

PREVIEW_SIZE

public static final java.lang.String PREVIEW_SIZE
See Also:
Constant Field Values

PREVIEW_COL_SELECT

public static final java.lang.String PREVIEW_COL_SELECT
See Also:
Constant Field Values

PREVIEW_COL_BG

public static final java.lang.String PREVIEW_COL_BG
See Also:
Constant Field Values

SAVE_INDENT

public static final java.lang.String SAVE_INDENT
See Also:
Constant Field Values

SAVE_SPACELINES

public static final java.lang.String SAVE_SPACELINES
See Also:
Constant Field Values

SAVE_TAGLINE

public static final java.lang.String SAVE_TAGLINE
See Also:
Constant Field Values

SAVE_ENCODING

public static final java.lang.String SAVE_ENCODING
See Also:
Constant Field Values

TB_COMPASS_SIZE

public static final java.lang.String TB_COMPASS_SIZE
See Also:
Constant Field Values

TB_PERFMON_SIZE

public static final java.lang.String TB_PERFMON_SIZE
See Also:
Constant Field Values

TB_RESIZE_FONT

public static final java.lang.String TB_RESIZE_FONT
See Also:
Constant Field Values

MISC_LEFTCLICK

public static final java.lang.String MISC_LEFTCLICK
See Also:
Constant Field Values

MISC_REMEMBERSIZES

public static final java.lang.String MISC_REMEMBERSIZES
See Also:
Constant Field Values

TIMES_LOADED

public static final java.lang.String TIMES_LOADED
See Also:
Constant Field Values

sizes

public static final java.awt.Dimension[] sizes

previewSizes

public static final java.lang.String[] previewSizes

encodings

public static final java.lang.String[] encodings

GD_EXT

public static final java.lang.String GD_EXT
See Also:
Constant Field Values
Constructor Detail

Settings

public Settings()
Method Detail

load

public void load()

save

public void save()

setDefaults

public void setDefaults()

getGameDir

public java.lang.String getGameDir()

validateGameDir

public static boolean validateGameDir(java.lang.String gameDir)

closeOnLeftClick

public boolean closeOnLeftClick()

showBackground

public boolean showBackground()

autoLoad

public boolean autoLoad()

showSplash

public boolean showSplash()

showDeleteWarning

public boolean showDeleteWarning()

rememberDialogSizes

public boolean rememberDialogSizes()

getPreviewSize

public java.awt.Dimension getPreviewSize()

getSelectColor

public java.awt.Color getSelectColor()

getBgColor

public java.awt.Color getBgColor()

getColor

public static java.awt.Color getColor(java.lang.String value)

getSaveIndent

public int getSaveIndent()

getSaveSpaceLines

public int getSaveSpaceLines()

getInt

public int getInt(java.lang.String key,
                  int defaultValue)

getTagLine

public java.lang.String getTagLine()

getBackgroundFile

public java.lang.String getBackgroundFile()

compassSmall

public boolean compassSmall()

perfMonSmall

public boolean perfMonSmall()

getEncoding

public int getEncoding()

getTimesLoaded

public int getTimesLoaded()

incTimesLoaded

public void incTimesLoaded()

addPropertyChangeListener

public void addPropertyChangeListener(IPropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(IPropertyChangeListener l)

setProperty

public java.lang.Object setProperty(java.lang.String arg0,
                                    java.lang.String arg1)