|
||||||||||
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.cms.gui.dialog.DialogEdit info.magnolia.module.shop.dialog.MultiLanguageDialogEdit
public class MultiLanguageDialogEdit
The MultiLanguageDialogEdit is an Edit dialog which will display an input
field 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.
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 | |
---|---|
MultiLanguageDialogEdit()
|
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.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 MultiLanguageDialogEdit()
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.cms.gui.dialog.DialogControlImpl
javax.jcr.RepositoryException
public void drawHtml(Writer out) throws IOException
drawHtml
in interface info.magnolia.cms.gui.dialog.DialogControl
drawHtml
in class info.magnolia.cms.gui.dialog.DialogEdit
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 |