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 java.lang.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.


Field Summary
protected  javax.servlet.jsp.PageContext page
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  javax.servlet.http.HttpServletResponse response
           
 
Constructor Summary
Config.Configurator(javax.servlet.jsp.PageContext pageContext, Config c)
           
 
Method Summary
 void config(Config.SubConfig c)
          Configure a list or wizard.
 Config.ListConfig createList()
          Deprecated. use createList(cloud)
 Config.ListConfig createList(Cloud cloud)
           
 Config.WizardConfig createWizard(Cloud cloud)
           
 java.lang.String getBackPage()
           
 javax.servlet.jsp.PageContext getPage()
           
protected  java.lang.String getParam(java.lang.String paramName)
           
protected  boolean getParam(java.lang.String paramName, boolean def)
           
protected  java.lang.Boolean getParam(java.lang.String paramName, java.lang.Boolean def)
           
protected  int getParam(java.lang.String paramName, int def)
           
protected  java.lang.Integer getParam(java.lang.String paramName, java.lang.Integer def)
           
protected  java.lang.String getParam(java.lang.String paramName, java.lang.String defaultValue)
           
 java.lang.String getRealPath(java.lang.String path)
           
 java.io.File resolveToFile(java.lang.String templatePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

page

protected javax.servlet.jsp.PageContext page

request

protected javax.servlet.http.HttpServletRequest request

response

protected javax.servlet.http.HttpServletResponse response
Constructor Detail

Config.Configurator

public Config.Configurator(javax.servlet.jsp.PageContext pageContext,
                           Config c)
                    throws WizardException
Method Detail

getRealPath

public java.lang.String getRealPath(java.lang.String path)

resolveToFile

public java.io.File resolveToFile(java.lang.String templatePath)

getPage

public javax.servlet.jsp.PageContext getPage()

getParam

protected java.lang.String getParam(java.lang.String paramName)

getParam

protected java.lang.String getParam(java.lang.String paramName,
                                    java.lang.String defaultValue)

getParam

protected int getParam(java.lang.String paramName,
                       int def)

getParam

protected java.lang.Integer getParam(java.lang.String paramName,
                                     java.lang.Integer def)

getParam

protected boolean getParam(java.lang.String paramName,
                           boolean def)

getParam

protected java.lang.Boolean getParam(java.lang.String paramName,
                                     java.lang.Boolean def)

getBackPage

public java.lang.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 SecurityException,
                                        WizardException

config

public void config(Config.SubConfig c)
            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.
Since:
MMBase-1.6.4


MMBase build 1.6.5.20030923