org.mmbase.applications.editwizard
Class Config.Configurator
java.lang.Object
org.mmbase.applications.editwizard.Config.Configurator
- Enclosing class:
- Config
- public static class Config.Configurator
- extends Object
To fill the Config struct, this 'Configurator' exists. You
could extend it to change wich query parameters must be used,
and what are the defaults and so on.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
page
protected PageContext page
request
protected HttpServletRequest request
response
protected HttpServletResponse response
Config.Configurator
public Config.Configurator(PageContext pageContext,
Config c)
throws WizardException,
MalformedURLException
getResource
public URL getResource(String path)
throws MalformedURLException
- Throws:
MalformedURLException
resolveToURL
public URL resolveToURL(String templatePath)
throws TransformerException
- Throws:
TransformerException
getPage
public PageContext getPage()
getParam
protected String getParam(String paramName)
getParam
protected String getParam(String paramName,
String defaultValue)
getParam
protected int getParam(String paramName,
int def)
getParam
protected Integer getParam(String paramName,
Integer def)
getParam
protected boolean getParam(String paramName,
boolean def)
getParam
protected Boolean getParam(String paramName,
Boolean def)
fillAttributes
protected void fillAttributes(Map map)
- Fills the given map with all attributes from the URI, but first all attributes from the
first call are added. No arrays supported, only single values.
- Since:
- MMBase-1.7
getBackPage
public String getBackPage()
createList
public Config.ListConfig createList(Cloud cloud)
createList
public Config.ListConfig createList()
- Deprecated. use createList(cloud)
createWizard
public Config.WizardConfig createWizard(Cloud cloud)
throws WizardException
- Throws:
WizardException
config
public void config(Config.SubConfig config)
throws WizardException
- Configure a list or wizard. The configuration object passed is updated with information retrieved
from the request object with which the configurator was created.
- Parameters:
config - the configuration object for the list or wizard.
- Throws:
WizardException- Since:
- MMBase-1.6.4
MMBase build 1.8.1.20060716