org.gerhardb.jibs.viewer
Class UserPreferences
java.lang.Object
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
thePrefs
public static final java.util.prefs.Preferences thePrefs
UserPreferences
public UserPreferences()
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.