com.xpn.xwiki.wysiwyg.client.plugin.internal
Class DefaultConfig
java.lang.Object
com.xpn.xwiki.wysiwyg.client.plugin.internal.DefaultConfig
- All Implemented Interfaces:
- Config
public final class DefaultConfig
- extends java.lang.Object
- implements Config
The default implementation of Config interface. We don't plan to provide another implementation. This
implementation wraps a Dictionary instance build from a JavaScript object in the container HTML page.
|
Constructor Summary |
DefaultConfig(com.google.gwt.i18n.client.Dictionary params)
|
|
Method Summary |
java.lang.String |
getParameter(java.lang.String paramName)
Returns the value of the specified parameter, defaulting to null if the parameter doesn't exist. |
java.lang.String |
getParameter(java.lang.String paramName,
java.lang.String defaultValue)
Returns the value of the specified parameter, defaulting to the given value if the parameter doesn't exist. |
java.util.Set<java.lang.String> |
getParameterNames()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final DefaultConfig DEFAULT
- Empty configuration.
DefaultConfig
public DefaultConfig(com.google.gwt.i18n.client.Dictionary params)
getParameter
public java.lang.String getParameter(java.lang.String paramName)
- Returns the value of the specified parameter, defaulting to
null if the parameter doesn't exist.
- Specified by:
getParameter in interface Config
- Parameters:
paramName - The name of the parameter.
- Returns:
- The value of the given parameter or
null if there's no such parameter. - See Also:
Config.getParameter(String)
getParameter
public java.lang.String getParameter(java.lang.String paramName,
java.lang.String defaultValue)
- Returns the value of the specified parameter, defaulting to the given value if the parameter doesn't exist.
- Specified by:
getParameter in interface Config
- Parameters:
paramName - The name of the parameter.defaultValue - The default value if the parameter doesn't exist.
- Returns:
- The value of the given parameter or the specified default value if there's no such parameter.
- See Also:
Config.getParameter(String, String)
getParameterNames
public java.util.Set<java.lang.String> getParameterNames()
-
- Specified by:
getParameterNames in interface Config
- Returns:
- The set of all the parameter names.
- See Also:
Config.getParameterNames()
Copyright © 2004-2008 XWiki. All Rights Reserved.