Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.application.timewarp.utilities
Class Prefs  view Prefs download Prefs.java

java.lang.Object
  extended byorg.scopemvc.application.timewarp.utilities.Prefs
Direct Known Subclasses:
Prefs14

public class Prefs
extends java.lang.Object

This class is a simple implementation of the *real* Prefs class to make it possible to compile with JDK 1.3 and older. It uses properties to store user preferences.

Version:
$Revision: 1.5 $

Field Summary
private static Prefs instance
           
private  java.io.File prefsFile
           
private  java.util.Properties properties
           
 
Constructor Summary
Prefs()
           
 
Method Summary
 java.lang.String get(java.lang.String pathName, java.lang.String key)
          Description of the Method
 java.lang.String get(java.lang.String pathName, java.lang.String key, java.lang.String defaultValue)
          Description of the Method
static Prefs getInstance()
          Gets the instance
 void init(java.io.File prefsDir, java.lang.String prefsId)
          Description of the Method
 void save()
          Description of the Method
 void set(java.lang.String pathName, java.lang.String key, java.lang.String value)
          Description of the Method
private  java.lang.String toProperty(java.lang.String pathName, java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static Prefs instance

properties

private java.util.Properties properties

prefsFile

private java.io.File prefsFile
Constructor Detail

Prefs

public Prefs()
Method Detail

getInstance

public static Prefs getInstance()
Gets the instance


get

public java.lang.String get(java.lang.String pathName,
                            java.lang.String key)
Description of the Method


get

public java.lang.String get(java.lang.String pathName,
                            java.lang.String key,
                            java.lang.String defaultValue)
Description of the Method


set

public void set(java.lang.String pathName,
                java.lang.String key,
                java.lang.String value)
Description of the Method


save

public void save()
Description of the Method


init

public void init(java.io.File prefsDir,
                 java.lang.String prefsId)
          throws java.lang.Exception
Description of the Method


toProperty

private java.lang.String toProperty(java.lang.String pathName,
                                    java.lang.String key)