org.wcb.autohome.util
Class PropertyLoader

java.lang.Object
  extended byorg.wcb.common.UIDefaultsLoader
      extended byorg.wcb.autohome.util.PropertyLoader
All Implemented Interfaces:
X10DeviceConstants

public class PropertyLoader
extends UIDefaultsLoader
implements X10DeviceConstants

Project: Alice X10 Interface Filename: $Id: PropertyLoader.java,v 1.4 2003/12/31 00:08:12 wbogaardt Exp $ Abstract: User default loader for UIManager

Version:
$Id: PropertyLoader.java,v 1.4 2003/12/31 00:08:12 wbogaardt Exp $
Author:
wbogaardt

Field Summary
 
Fields inherited from class org.wcb.common.UIDefaultsLoader
DEFAULTFILENAME, FILEHEADER, saveFileName, swingProperties
 
Fields inherited from interface org.wcb.autohome.interfaces.X10DeviceConstants
APPLIANCE_MODULE_OFF, APPLIANCE_MODULE_ON, BAUD, BAUD_RATE_ARRAY, BRIGHT_ACTION, BROWSER, CM11A_TRANSMITTER, CM17A_TRANSMITTER, CONNECT_ON_START, COUNTRY, DATA_BIT, DATA_BITS_ARRAY, DEVICE_ARRAY, DIM_ACTION, EMAIL_AUTHORIZE, EMAIL_FREQUENCY, EMAIL_FROM, EMAIL_PASSWORD, EMAIL_SMTP, EMAIL_TO, EMAIL_USERNAME, FALSE, HOUSE_CODES_ARRAY, INTERFACE_TYPE, LAMP_MODULE_OFF, LAMP_MODULE_ON, LANGUAGE, LAST_FILE, LOCALHOST, LOOK_AND_FEEL, MAC, METAL, MOTIF, OFF_ACTION, ON_ACTION, PARITY, PARITY_ARRAY, RECOVER_CM11A, RMI_HOST, SEPARATOR, SERIAL_PORT, SPEECH_ENGINE, STOP_BIT, STOP_BITS_ARRAY, TEST_TRANSMITTER, TIMER_EVENT, TRIGGER_EVENT, TRUE, USER_HOME, WINDOWS
 
Constructor Summary
PropertyLoader()
           
PropertyLoader(java.lang.String fileName)
           
PropertyLoader(java.lang.String fileName, java.lang.String directory)
           
 
Method Summary
 boolean getInitialOnStart()
          Reads the property value of initial.on.start for a value of true or false.
 java.util.Properties getProperties()
           
 java.util.Properties load(java.lang.String directory, java.lang.String file)
          Load the specified properties file.
 void setInitialOnStart(boolean bValue)
          Saves the setting in jhome.prop with the key initial.on.start with a string of true or false.
 void setProperty(java.lang.String prop, java.lang.Object value)
           
 
Methods inherited from class org.wcb.common.UIDefaultsLoader
buildDefaultFile, getProperty, initiateLF, isEmpty, loadProperties, main, outputToScreen, saveProperties, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyLoader

public PropertyLoader()

PropertyLoader

public PropertyLoader(java.lang.String fileName)

PropertyLoader

public PropertyLoader(java.lang.String fileName,
                      java.lang.String directory)
Method Detail

load

public java.util.Properties load(java.lang.String directory,
                                 java.lang.String file)
Load the specified properties file. If the file does not exist, a default file will be created.

Overrides:
load in class UIDefaultsLoader

getProperties

public java.util.Properties getProperties()
Overrides:
getProperties in class UIDefaultsLoader

setProperty

public void setProperty(java.lang.String prop,
                        java.lang.Object value)

setInitialOnStart

public void setInitialOnStart(boolean bValue)
Saves the setting in jhome.prop with the key initial.on.start with a string of true or false.

Parameters:
bValue - Boolean to be saved in property hash.

getInitialOnStart

public boolean getInitialOnStart()
Reads the property value of initial.on.start for a value of true or false. A true indicates start the serial port connection.

Returns:
Boolean true or false from property file.


Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.