net.sourceforge.openutils.mgnlcontrols.dialog
Class ConfigurableFreemarkerDialog

java.lang.Object
  extended by info.magnolia.cms.gui.dialog.DialogControlImpl
      extended by info.magnolia.cms.gui.dialog.DialogBox
          extended by net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog
All Implemented Interfaces:
info.magnolia.cms.gui.dialog.DialogControl
Direct Known Subclasses:
DialogGrid

public abstract class ConfigurableFreemarkerDialog
extends info.magnolia.cms.gui.dialog.DialogBox

similar to DialogFreemarker but with a fixed template, needed till MAGNOLIA-2175 is done

Version:
$Id: ConfigurableFreemarkerDialog.java 1197 2009-05-11 17:22:11Z fgiust $
Author:
fgiust

Field Summary
 
Fields inherited from class info.magnolia.cms.gui.dialog.DialogBox
BOXTYPE_1COL, BOXTYPE_2COLS
 
Fields inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl
DEFAULT_VALUE_PROPERTY, SESSION_ATTRIBUTENAME_DIALOGOBJECT, SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE, VALIDATION_PATTERN_PROPERTY, value
 
Constructor Summary
ConfigurableFreemarkerDialog()
           
 
Method Summary
protected  void addToParameters(java.util.Map parameters)
           
 void drawHtml(java.io.Writer out)
          
protected abstract  java.lang.String getPath()
           
protected  java.util.Map getSubNodes(info.magnolia.cms.core.Content node)
          Get a recursive map view of a content node
 void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content websiteNode, info.magnolia.cms.core.Content configNode)
          
 
Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox
drawHtmlPost, drawHtmlPre, getBoxType, getHtmlDescription, setBoxType
 
Methods inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl
addOption, addSub, clearWebsiteNode, drawHtmlPostSubs, drawHtmlPreSubs, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getMessages, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableFreemarkerDialog

public ConfigurableFreemarkerDialog()
Method Detail

getSubNodes

protected java.util.Map getSubNodes(info.magnolia.cms.core.Content node)
                             throws javax.jcr.RepositoryException,
                                    info.magnolia.cms.security.AccessDeniedException
Get a recursive map view of a content node

Parameters:
node - content node
Returns:
recursive map view on content node properties and children
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException

init

public void init(javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 info.magnolia.cms.core.Content websiteNode,
                 info.magnolia.cms.core.Content configNode)
          throws javax.jcr.RepositoryException

Specified by:
init in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
init in class info.magnolia.cms.gui.dialog.DialogControlImpl
Throws:
javax.jcr.RepositoryException

drawHtml

public void drawHtml(java.io.Writer out)
              throws java.io.IOException

Specified by:
drawHtml in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
drawHtml in class info.magnolia.cms.gui.dialog.DialogControlImpl
Throws:
java.io.IOException

addToParameters

protected void addToParameters(java.util.Map parameters)

getPath

protected abstract java.lang.String getPath()
Returns:
ftl template path


Copyright © 2009 Openmind. All Rights Reserved.