info.magnolia.module.shop.dialog
Class MultiLanguageDialogFckEdit

java.lang.Object
  extended by info.magnolia.cms.gui.dialog.DialogControlImpl
      extended by info.magnolia.cms.gui.dialog.DialogBox
          extended by info.magnolia.module.fckeditor.dialogs.FckEditorDialog
              extended by info.magnolia.module.shop.dialog.MultiLanguageDialogFckEdit
All Implemented Interfaces:
info.magnolia.cms.gui.dialog.DialogControl, MultiLanguageDialogControl

public class MultiLanguageDialogFckEdit
extends info.magnolia.module.fckeditor.dialogs.FckEditorDialog
implements MultiLanguageDialogControl

The MultiLanguageDialogFckEdit is an FckEditDialog which will display an editor for each langauge. The languages are currently read from config:/server/i18n/content/[siteKey] where "siteKey" is the name of the root node of the node the dialog is used on. The languages are stored exactly the same way as they are in config:/server/i18n/content/locales. So depending on the site you are using this dialog for, it will display different language version fields. TODO: Switch the language configuration technique to the official Magnolia site configuration.

Author:
will

Nested Class Summary
 
Nested classes/interfaces inherited from class info.magnolia.module.fckeditor.dialogs.FckEditorDialog
info.magnolia.module.fckeditor.dialogs.FckEditorDialog.SpellCheckerProviders
 
Field Summary
 
Fields inherited from class info.magnolia.module.fckeditor.dialogs.FckEditorDialog
FCKEDIT_PATH, PARAM_CSS, PARAM_CSS_DEFAULT, PARAM_CUSTOM_CONFIGURATION_PATH, PARAM_CUSTOM_CONFIGURATION_PATH_DEFAULT, PARAM_FONT_SIZES, PARAM_FONT_SIZES_DEFAULT, PARAM_FONTS, PARAM_FONTS_DEFAULT, PARAM_HEIGHT, PARAM_HEIGHT_DEFAULT, PARAM_IMAGES, PARAM_IMAGES_DEFAULT, PARAM_JS_INIT_FILE, PARAM_JS_INIT_FILE_DEFAULT, PARAM_SOURCE, PARAM_SOURCE_DEFAULT, PARAM_STYLES, PARAM_STYLES_DEFAULT, PARAM_TABLES, PARAM_TABLES_DEFAULT, PARAM_TEMPLATES, PARAM_TEMPLATES_DEFAULT, PARAM_WIDTH, PARAM_WIDTH_DEFAULT
 
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
MultiLanguageDialogFckEdit()
           
 
Method Summary
 void drawHtml(Writer out)
           
 List<String> getLanguages()
           
 String getLanguageSuffix(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)
           
 void setLanguages(List<String> languages)
           
 
Methods inherited from class info.magnolia.module.fckeditor.dialogs.FckEditorDialog
convertToView, escapeJsValue, getVarName
 
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

MultiLanguageDialogFckEdit

public MultiLanguageDialogFckEdit()
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.module.fckeditor.dialogs.FckEditorDialog
Throws:
javax.jcr.RepositoryException

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.module.fckeditor.dialogs.FckEditorDialog
Throws:
IOException

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.