net.fckeditor.handlers
Class PropertiesLoader
java.lang.Object
net.fckeditor.handlers.PropertiesLoader
public class PropertiesLoader
- extends java.lang.Object
Handler to hold the basic properties.
The main default file is 'default.properties' in the deepth of the classpath and should be
untouched. If there is a file named 'fckeditor.properties' in the root of the classpath, it will
be loaded. Values which are loaded before, will be overwritten.
If you won't use an extra properties file to adjust the defaults, you can use
setProperty(String, String)
instead.
- Version:
- $Id: PropertiesLoader.java 1685 2008-03-09 13:13:40Z th-schwarz $
Method Summary |
static java.lang.String |
getProperty(java.lang.String key)
Getter for a property of 'key'. |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Setter for a property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesLoader
public PropertiesLoader()
getProperty
public static java.lang.String getProperty(java.lang.String key)
- Getter for a property of 'key'.
- Parameters:
key
- the propery key
- Returns:
- the value in this property list with the specified key value.
- See Also:
Properties.getProperty(String)
setProperty
public static void setProperty(java.lang.String key,
java.lang.String value)
- Setter for a property. If the property already exists, the value will be overwritten.
Hint: This method is intended for an alternative way to set user defaults programmatically
instead of using the 'fckeditor.properties'. It should never used inside FCKeditor.Java !!!
- Parameters:
key
- key the propery keyvalue
-
- Throws:
java.lang.IllegalArgumentException
- if 'key' is empty.- See Also:
Properties.setProperty(String, String)
Copyright © 2004-2008 Frederico Caldeira Knabben. All Rights Reserved.