org.gerhardb.jibs.viewer
Class UserPreferences

java.lang.Object
  extended byorg.gerhardb.jibs.viewer.UserPreferences

public class UserPreferences
extends java.lang.Object

Wraps the profile/preferences so other parts of the application doesn't have to deal with the details. Preferences are used so that Java will magically store them on behalf of the user. Because of this, no init file will be needed since Java will automatically store the preference data.

All of the set methods throw exceptions for two reasons:
1. For BackingStoreExceptions and other low-level run time problems. 2. So validation can be incorporated without having to redo anything.

Author:
Gerhard Beck

Field Summary
static java.util.prefs.Preferences thePrefs
           
 
Constructor Summary
UserPreferences()
           
 
Method Summary
static void flush()
           
static java.lang.String getAddDirectory()
           
static java.lang.String getDeleteDirectory()
           
static boolean getFirstEndingConvention()
           
static java.lang.String getLastViewedDir()
           
static java.lang.String getMoveDirectory()
           
static int getRelabelCount()
           
static java.lang.String getRelabelPostfix()
           
static int getResizeHeight()
           
static int getResizeWidth()
           
static java.lang.String getTreeDirectory()
           
static java.lang.String getViewDirectory()
           
static boolean getWindowsFileConvention()
           
static boolean isInitialized()
           
static void setInitialized(boolean setting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thePrefs

public static final java.util.prefs.Preferences thePrefs
Constructor Detail

UserPreferences

public UserPreferences()
Method Detail

isInitialized

public static boolean isInitialized()

setInitialized

public static void setInitialized(boolean setting)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getAddDirectory

public static java.lang.String getAddDirectory()

getTreeDirectory

public static java.lang.String getTreeDirectory()

getViewDirectory

public static java.lang.String getViewDirectory()

getLastViewedDir

public static java.lang.String getLastViewedDir()

getDeleteDirectory

public static java.lang.String getDeleteDirectory()

getMoveDirectory

public static java.lang.String getMoveDirectory()

getRelabelCount

public static int getRelabelCount()

getRelabelPostfix

public static java.lang.String getRelabelPostfix()

getResizeWidth

public static int getResizeWidth()

getResizeHeight

public static int getResizeHeight()

getWindowsFileConvention

public static boolean getWindowsFileConvention()

getFirstEndingConvention

public static boolean getFirstEndingConvention()

flush

public static void flush()


Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.