| java.lang.Object net.wastl.webmail.config.ConfigScheme
ConfigScheme | public class ConfigScheme (Code) | | This class contains a scheme for WebMail configuration data.
It is mainly a container for the ConfigParameter objects and a wrapper to access
the main functions in them to ease access to the scheme.
Created: 31.08.99
author: Sebastian Schaffert version: $Revision: 1.1.1.1 $ |
Method Summary | |
public void | addConfigurationListener(String key, ConfigurationListener l) Add a configuration listener for a key. | public void | configAddChoice(String key, String choice, String desc) | public void | configRegisterChoiceKey(String key, String desc) | public void | configRegisterChoiceKey(ConfigurationListener l, String key, String desc) | public void | configRegisterCryptedStringKey(String key, String def, String desc) | public void | configRegisterCryptedStringKey(ConfigurationListener l, String key, String def, String desc) | public void | configRegisterIntegerKey(String key, String def, String desc) | public void | configRegisterIntegerKey(ConfigurationListener l, String key, String def, String desc) | public void | configRegisterStringKey(String key, String def, String desc) | public void | configRegisterStringKey(ConfigurationListener l, String key, String def, String desc) | public void | configRegisterYesNoKey(String key, String desc) | public void | configRegisterYesNoKey(ConfigurationListener l, String key, String desc) | public String | filter(String key, String value) | public ConfigParameter | getConfigParameter(String key) | public String | getConfigParameterGroup(String key) | public String | getConfigParameterType(String key) | public Object | getDefaultValue(String key) | public String | getDescription(String key) | public Enumeration | getPossibleKeys() | public boolean | isValid(String key, Object value) | public void | notifyConfigurationChange(String key) | public void | registerConfig(ConfigParameter parm) | public void | setDefaultValue(String key, Object default_value) |
ConfigScheme | public ConfigScheme()(Code) | | |
addConfigurationListener | public void addConfigurationListener(String key, ConfigurationListener l)(Code) | | Add a configuration listener for a key.
There may be any amount of Listeners for a parameter.
|
configAddChoice | public void configAddChoice(String key, String choice, String desc)(Code) | | Add a choice to an already-existing Choice-key
Parameters: key - Name of the configuration key where a choice is to be added Parameters: choice - Name of the new choice Parameters: desc - Description for this choice |
configRegisterChoiceKey | public void configRegisterChoiceKey(String key, String desc)(Code) | | Register a configuration key that can take one of a choice of possible values
Parameters: key - Name of the configuration key Parameters: desc - Description for this key See Also: configAddChoice |
configRegisterCryptedStringKey | public void configRegisterCryptedStringKey(String key, String def, String desc)(Code) | | Register a configuration key that can take String values and crypts them
Parameters: key - Name of the configuration key default Default value for this key Parameters: desc - Description for this key |
configRegisterIntegerKey | public void configRegisterIntegerKey(String key, String def, String desc)(Code) | | Register a configuration key that can take String values
Parameters: key - Name of the configuration key default Default value for this key Parameters: desc - Description for this key |
configRegisterStringKey | public void configRegisterStringKey(String key, String def, String desc)(Code) | | Register a configuration key that can take String values
Parameters: key - Name of the configuration key default Default value for this key Parameters: desc - Description for this key |
isValid | public boolean isValid(String key, Object value)(Code) | | Check whether a key/value pair is valid in this configuration scheme
Parameters: key - Name of the parameter Parameters: value - value to check for |
notifyConfigurationChange | public void notifyConfigurationChange(String key)(Code) | | |
|
|