org.wcb.autohome.util
Class PropertyLoader
java.lang.Object
org.wcb.common.UIDefaultsLoader
org.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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyLoader
public PropertyLoader()
PropertyLoader
public PropertyLoader(java.lang.String fileName)
PropertyLoader
public PropertyLoader(java.lang.String fileName,
java.lang.String directory)
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.