net.fckeditor.handlers
Class PropertiesLoader

java.lang.Object
  extended by net.fckeditor.handlers.PropertiesLoader

public class PropertiesLoader
extends java.lang.Object

This handler gives you access to properties stored in /net/fckeditor/handlers/default.properties and /fckeditor.properties.
This class loads the properties files as follows:

  1. Load default.properties
  2. Load fckeditor.properties if present.
Attention: Properties specified in fckeditor.properties will override properties loaded from default.properties. (intended behavior)
Hint: You may set properties programmatically with setProperty(String, String) instead or additionally.

Version:
$Id: PropertiesLoader.java 3840 2009-07-08 20:29:46Z mosipov $

Constructor Summary
PropertiesLoader()
           
 
Method Summary
static java.lang.String getProperty(java.lang.String key)
          Getter for a property.
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
 

Constructor Detail

PropertiesLoader

public PropertiesLoader()
Method Detail

getProperty

public static java.lang.String getProperty(java.lang.String key)
Getter for a property.

Parameters:
key - The property key.
Returns:
The value for the specified key.
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 overridden.
Hint: This method is intended as an alternative way to set properties programmatically instead of using the fckeditor.properties. It should never used inside FCKeditor.Java!!!

Parameters:
key - The property key.
value - The property value.
See Also:
Properties.setProperty(String, String)


Copyright © 2004-2009 Frederico Caldeira Knabben. All Rights Reserved.