org.sourcejammer.client.gui.conf
Class UserPrefs

java.lang.Object
  |
  +--org.sourcejammer.client.gui.conf.UserPrefs

public class UserPrefs
extends java.lang.Object

Title: $FileName: UserPrefs.java$

Version:
$VerNum: 4$ $KeyWordsOff: $
Author:
$AuthorName: Rob MacGrogan$

Field Summary
static int DEFAULT_HORIZONTAL_SPLIT
           
static int DEFAULT_VERTICAL_SPLIT
           
private static int DEFAULT_WINDOW_HEIGHT
           
private static int DEFAULT_WINDOW_WIDTH
           
static java.lang.String HORIZONTAL_SPLIT
           
private static UserPrefs instance
           
static java.lang.String LOCAL_REMOTE_SYNC_VIEW
           
static java.lang.String LOOK_AND_FEEL
           
static java.lang.String PROXY_ENABLED
           
static java.lang.String PROXY_HOST
           
static java.lang.String PROXY_PORT
           
static java.lang.String PROXY_USE_PASSWORD
           
static java.lang.String PROXY_USER
           
static java.lang.String SKIN_LF_THEME
           
static java.lang.String SYS_PROXY_ENABLED
           
static java.lang.String SYS_PROXY_HOST
           
static java.lang.String SYS_PROXY_PASSWORD
           
static java.lang.String SYS_PROXY_PORT
           
static java.lang.String SYS_PROXY_USER
           
static java.lang.String VERTICAL_SPLIT
           
static java.lang.String WINDOW_HEIGHT
           
static java.lang.String WINDOW_MAX
           
static java.lang.String WINDOW_WIDTH
           
static java.lang.String WINDOW_X
           
static java.lang.String WINDOW_Y
           
 
Constructor Summary
private UserPrefs()
           
 
Method Summary
 boolean getBoolean(java.lang.String key, boolean defaultVal)
           
static UserPrefs getInstance()
           
 int getInt(java.lang.String key, int defaultVal)
           
 java.awt.Rectangle getStartupWindowBounds()
           
 java.lang.String getString(java.lang.String key, java.lang.String defaultVal)
           
 void removePreference(java.lang.String key)
           
 void setBoolean(java.lang.String key, boolean val)
           
 void setInt(java.lang.String key, int val)
           
 void setString(java.lang.String key, java.lang.String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static UserPrefs instance

PROXY_ENABLED

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

PROXY_PORT

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

PROXY_HOST

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

PROXY_USER

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

PROXY_USE_PASSWORD

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

WINDOW_X

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

WINDOW_Y

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

WINDOW_WIDTH

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

WINDOW_HEIGHT

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

WINDOW_MAX

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

LOOK_AND_FEEL

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

SKIN_LF_THEME

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

VERTICAL_SPLIT

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

HORIZONTAL_SPLIT

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

DEFAULT_WINDOW_WIDTH

private static final int DEFAULT_WINDOW_WIDTH
See Also:
Constant Field Values

DEFAULT_WINDOW_HEIGHT

private static final int DEFAULT_WINDOW_HEIGHT
See Also:
Constant Field Values

DEFAULT_HORIZONTAL_SPLIT

public static final int DEFAULT_HORIZONTAL_SPLIT
See Also:
Constant Field Values

DEFAULT_VERTICAL_SPLIT

public static final int DEFAULT_VERTICAL_SPLIT
See Also:
Constant Field Values

SYS_PROXY_ENABLED

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

SYS_PROXY_HOST

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

SYS_PROXY_PORT

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

SYS_PROXY_USER

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

SYS_PROXY_PASSWORD

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

LOCAL_REMOTE_SYNC_VIEW

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

UserPrefs

private UserPrefs()
Method Detail

getInstance

public static UserPrefs getInstance()

setString

public void setString(java.lang.String key,
                      java.lang.String val)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultVal)

setInt

public void setInt(java.lang.String key,
                   int val)

getInt

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

setBoolean

public void setBoolean(java.lang.String key,
                       boolean val)

getBoolean

public boolean getBoolean(java.lang.String key,
                          boolean defaultVal)

removePreference

public void removePreference(java.lang.String key)

getStartupWindowBounds

public java.awt.Rectangle getStartupWindowBounds()


Copyright 2003 Soucejammer project.