edu.isi.powerloom.gui.common
Class Preferences

java.lang.Object
  |
  +--edu.isi.powerloom.gui.common.Preferences

public class Preferences
extends java.lang.Object

This class provides facilities for loading and saving application preferences to and from a property file.

Since:
Tue Apr 23 15:53:36 2002
Author:
Eric Melz

Field Summary
static java.lang.String BROWSE_ON_START
           
static java.lang.String HOST
           
static java.lang.String LOAD_PATH
           
static java.lang.String PORT
           
static java.lang.String SAVED_QUERIES
           
 
Method Summary
 boolean getBooleanProperty()
          Insert the method's description here.
 boolean getBooleanProperty(java.lang.String property)
          Insert the method's description here.
static Preferences getInstance()
           
 java.lang.String getProperty(java.lang.String propName)
           
 void load()
           
static void main(java.lang.String[] args)
           
 void save()
           
 void setBooleanProperty(java.lang.String prop, boolean value)
          Insert the method's description here.
 void setBooleanProperty(java.lang.String prop, java.lang.String value)
          Insert the method's description here.
 void setProperty(java.lang.String propName, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAVED_QUERIES

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

HOST

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

PORT

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

LOAD_PATH

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

BROWSE_ON_START

public static final java.lang.String BROWSE_ON_START
See Also:
Constant Field Values
Method Detail

getBooleanProperty

public boolean getBooleanProperty()
Insert the method's description here. Creation date: (4/29/2002 8:03:49 AM)

Returns:
boolean

getBooleanProperty

public boolean getBooleanProperty(java.lang.String property)
Insert the method's description here. Creation date: (4/29/2002 8:03:49 AM)

Returns:
boolean

getInstance

public static Preferences getInstance()

getProperty

public java.lang.String getProperty(java.lang.String propName)

load

public void load()

main

public static void main(java.lang.String[] args)

save

public void save()

setBooleanProperty

public void setBooleanProperty(java.lang.String prop,
                               java.lang.String value)
Insert the method's description here. Creation date: (4/29/2002 8:05:44 AM)

Parameters:
prop - java.lang.String
value - java.lang.String

setBooleanProperty

public void setBooleanProperty(java.lang.String prop,
                               boolean value)
Insert the method's description here. Creation date: (4/29/2002 8:05:44 AM)

Parameters:
prop - java.lang.String
value - java.lang.String

setProperty

public void setProperty(java.lang.String propName,
                        java.lang.String value)


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.