info.magnolia.cms.gui.control
Class FreemarkerControl

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.FreemarkerControl
All Implemented Interfaces:
Control

public class FreemarkerControl
extends ControlImpl

Class for a generic control renderered by freemarker.

Version:
$Id: $
Author:
Manuel Molaschi

Field Summary
 
Fields inherited from class info.magnolia.cms.gui.control.ControlImpl
BUTTONSTATE_DISABLED, BUTTONSTATE_MOUSEDOWN, BUTTONSTATE_MOUSEOVER, BUTTONSTATE_NORMAL, BUTTONSTATE_PUSHED, BUTTONTYPE_CHECKBOX, BUTTONTYPE_PUSHBUTTON, BUTTONTYPE_RADIO, CSSCLASS_CONTROLBAR, CSSCLASS_CONTROLBARSMALL, CSSCLASS_CONTROLBUTTON, CSSCLASS_CONTROLBUTTONSMALL, ENCODING_BASE64, ENCODING_NO, ENCODING_UNIX, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
FreemarkerControl(int valueType)
          Constructor
 
Method Summary
 void drawHtml(Writer out, String path, Map parameters)
          Draw control on writer
 
Methods inherited from class info.magnolia.cms.gui.control.ControlImpl
escapeHTML, getCssClass, getCssStyles, getCssStyles, getCssStyles, getEncoding, getEvents, getHtml, getHtmlCssClass, getHtmlCssStyles, getHtmlEvents, getHtmlId, getHtmlInter, getHtmlInter, getHtmlPost, getHtmlPost, getHtmlPre, getHtmlPre, getHtmlSaveInfo, getId, getIsRichEditValue, getLabel, getName, getNodeCollectionName, getNodeCollectionName, getNodeName, getNodeName, getPath, getRequest, getSaveInfo, getType, getValue, getValues, getValueType, getWebsiteNode, println, setCssClass, setCssStyles, setCssStyles, setEncoding, setEvent, setEvent, setEvents, setHtmlInter, setHtmlPost, setHtmlPre, setId, setIsRichEditValue, setLabel, setName, setNodeCollectionName, setNodeName, setPath, setRequest, setSaveInfo, setType, setType, setValue, setValues, setValueType, setWebsiteNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerControl

public FreemarkerControl(int valueType)
Constructor

Parameters:
valueType - ControlImpl.VALUETYPE_MULTIPLE or ControlImpl.VALUETYPE_SINGLE
Method Detail

drawHtml

public void drawHtml(Writer out,
                     String path,
                     Map parameters)
              throws IOException,
                     freemarker.template.TemplateException
Draw control on writer

Parameters:
out - writer to write on
path - path of freemarker template. The template will be automatically searched in classpath or in filesystem
parameters - map of parameters to be used in template
Throws:
IOException - exception in template loading
freemarker.template.TemplateException - exception in template rendering


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.