info.magnolia.module.shop.dialog
Class ShopDialogDAM

java.lang.Object
  extended by info.magnolia.cms.gui.dialog.DialogControlImpl
      extended by info.magnolia.module.shop.dialog.ShopDialogDAM
All Implemented Interfaces:
info.magnolia.cms.gui.dialog.DialogControl, MultiLanguageDialogControl

public class ShopDialogDAM
extends info.magnolia.cms.gui.dialog.DialogControlImpl
implements MultiLanguageDialogControl

This class is a copy from DialogDAM because of MGNLSTK-769 and the method i need to override is private This dialog is loaded when control=dam is selected. It's configuration is complemented with the controls defined for each (DAMSupport) handler Once rendered this subcontrols will have as name: "dam control name + handler control name" i.e. dam control name "image" handler control name "dmsUUID"

Author:
tmiyar

Field Summary
 
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
ShopDialogDAM()
           
 
Method Summary
 void drawHtml(Writer out)
           
 void drawHtmlPostSubs(String language, Writer out)
           
 void drawHtmlPreSubs(String language, Writer out)
           
 void drawRadio(String language, Writer out)
           
protected  void drawSubs(String language, Writer out)
           
 List<String> getLanguages()
           
 String getLanguageSuffix(String language)
           
 String getValue(String language)
           
 void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content storageNode, info.magnolia.cms.core.Content configNode)
           
protected  String readValue(String language)
           
 void setLanguages(List<String> languages)
           
 void setName(String s)
           
 
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, 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

ShopDialogDAM

public ShopDialogDAM()
Method Detail

init

public void init(javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 info.magnolia.cms.core.Content storageNode,
                 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

drawHtmlPreSubs

public void drawHtmlPreSubs(String language,
                            Writer out)
                     throws IOException
Throws:
IOException

drawSubs

protected void drawSubs(String language,
                        Writer out)
                 throws IOException
Throws:
IOException

drawHtmlPostSubs

public void drawHtmlPostSubs(String language,
                             Writer out)
                      throws IOException
Throws:
IOException

drawRadio

public void drawRadio(String language,
                      Writer out)
               throws IOException
Throws:
IOException

setName

public void setName(String s)
Overrides:
setName in class info.magnolia.cms.gui.dialog.DialogControlImpl

drawHtml

public void drawHtml(Writer out)
              throws IOException
Specified by:
drawHtml in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
drawHtml in class info.magnolia.cms.gui.dialog.DialogControlImpl
Throws:
IOException

getValue

public String getValue(String language)

readValue

protected String readValue(String language)

getLanguages

public List<String> getLanguages()
Specified by:
getLanguages in interface MultiLanguageDialogControl

setLanguages

public void setLanguages(List<String> languages)
Specified by:
setLanguages in interface MultiLanguageDialogControl

getLanguageSuffix

public String getLanguageSuffix(String language)
Specified by:
getLanguageSuffix in interface MultiLanguageDialogControl


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.