org.riotfamily.forms.controller
Class DefaultFormContext
java.lang.Object
org.riotfamily.forms.controller.DefaultFormContext
- All Implemented Interfaces:
- RenderContext, FormContext
public class DefaultFormContext
- extends Object
- implements FormContext
- Since:
- 6.4
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFormContext
public DefaultFormContext()
DefaultFormContext
public DefaultFormContext(MessageResolver messageResolver,
TemplateRenderer templateRenderer,
String contextPath,
String resourcePath,
String formUrl,
List<OptionsModelFactory> optionValuesAdapters)
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface FormContext
getMessageResolver
public MessageResolver getMessageResolver()
- Specified by:
getMessageResolver
in interface RenderContext
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interface RenderContext
getResourcePath
public String getResourcePath()
- Specified by:
getResourcePath
in interface FormContext
getTemplateRenderer
public TemplateRenderer getTemplateRenderer()
- Specified by:
getTemplateRenderer
in interface FormContext
getWriter
public PrintWriter getWriter()
- Specified by:
getWriter
in interface FormContext
setWriter
public void setWriter(PrintWriter writer)
- Specified by:
setWriter
in interface FormContext
getFormUrl
public String getFormUrl()
- Specified by:
getFormUrl
in interface FormContext
getContentUrl
public String getContentUrl(ContentElement el)
- Specified by:
getContentUrl
in interface FormContext
getUploadUrl
public String getUploadUrl(String uploadId)
- Specified by:
getUploadUrl
in interface FormContext
getPropertyEditorRegistrars
public PropertyEditorRegistrar[] getPropertyEditorRegistrars()
- Specified by:
getPropertyEditorRegistrars
in interface FormContext
setPropertyEditorRegistrars
public void setPropertyEditorRegistrars(PropertyEditorRegistrar[] registrars)
getOptionValuesAdapters
public List<OptionsModelFactory> getOptionValuesAdapters()
- Specified by:
getOptionValuesAdapters
in interface FormContext