org.wcb.common
Class UIDefaultsLoader
java.lang.Object
org.wcb.common.UIDefaultsLoader
- All Implemented Interfaces:
- X10DeviceConstants
- Direct Known Subclasses:
- PropertyLoader
- public class UIDefaultsLoader
- extends java.lang.Object
- implements X10DeviceConstants
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 |
protected void |
buildDefaultFile(java.lang.String directory,
java.lang.String file)
build a generic properties file with no values loaded
and have that files properties set to null and commented out |
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String val)
|
void |
initiateLF()
sets the UIManger to the look and feel indicated by the
cockpit properties file |
boolean |
isEmpty(java.lang.String propName)
Returns true if the specified property is empty. |
protected java.util.Properties |
load(java.lang.String directory,
java.lang.String file)
Load the specified properties file. |
protected java.util.Properties |
loadProperties(java.lang.String directory,
java.lang.String file)
Load the properties file. |
static void |
main(java.lang.String[] args)
|
void |
outputToScreen()
|
void |
saveProperties()
|
void |
setProperties(java.util.Properties newProp)
|
void |
setProperty(java.lang.String sKey,
java.lang.String sValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULTFILENAME
public static final java.lang.String DEFAULTFILENAME
- See Also:
- Constant Field Values
FILEHEADER
public static final java.lang.String FILEHEADER
- See Also:
- Constant Field Values
swingProperties
protected java.util.Properties swingProperties
saveFileName
protected static java.lang.String saveFileName
UIDefaultsLoader
public UIDefaultsLoader()
UIDefaultsLoader
public UIDefaultsLoader(java.lang.String fileName)
UIDefaultsLoader
public UIDefaultsLoader(java.lang.String fileName,
java.lang.String directory)
load
protected 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.
loadProperties
protected java.util.Properties loadProperties(java.lang.String directory,
java.lang.String file)
throws java.io.IOException
- Load the properties file.
- Throws:
java.io.IOException
initiateLF
public void initiateLF()
- sets the UIManger to the look and feel indicated by the
cockpit properties file
setProperty
public void setProperty(java.lang.String sKey,
java.lang.String sValue)
getProperties
public java.util.Properties getProperties()
getProperty
public java.lang.String getProperty(java.lang.String val)
outputToScreen
public void outputToScreen()
buildDefaultFile
protected void buildDefaultFile(java.lang.String directory,
java.lang.String file)
throws java.io.IOException
- build a generic properties file with no values loaded
and have that files properties set to null and commented out
- Throws:
java.io.IOException
saveProperties
public void saveProperties()
isEmpty
public boolean isEmpty(java.lang.String propName)
- Returns true if the specified property is empty.
setProperties
public void setProperties(java.util.Properties newProp)
main
public static void main(java.lang.String[] args)
Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.