|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.dialog.DialogControlImpl info.magnolia.cms.gui.dialog.DialogBox info.magnolia.module.fckeditor.dialogs.FckEditorDialog info.magnolia.module.shop.dialog.MultiLanguageDialogFckEdit
public class MultiLanguageDialogFckEdit
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.
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 |
---|
public MultiLanguageDialogFckEdit()
Method Detail |
---|
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
init
in interface info.magnolia.cms.gui.dialog.DialogControl
init
in class info.magnolia.module.fckeditor.dialogs.FckEditorDialog
javax.jcr.RepositoryException
public void drawHtml(Writer out) throws IOException
drawHtml
in interface info.magnolia.cms.gui.dialog.DialogControl
drawHtml
in class info.magnolia.module.fckeditor.dialogs.FckEditorDialog
IOException
public List<String> getLanguages()
getLanguages
in interface MultiLanguageDialogControl
public void setLanguages(List<String> languages)
setLanguages
in interface MultiLanguageDialogControl
public String getLanguageSuffix(String language)
getLanguageSuffix
in interface MultiLanguageDialogControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |