|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.editors.CmsDialogCopyLanguage
public class CmsDialogCopyLanguage
Provides methods for the editor copy language dialog.
The following files use this class:
Field Summary | |
---|---|
static int |
ACTION_UPDATE_LANGUAGES
Value for the action: update languages of the page. |
static java.lang.String |
DIALOG_TYPE
The dialog type. |
static java.lang.String |
DIALOG_UPDATE_LANGUAGES
Request parameter value for the action: update the elements of the page. |
static java.lang.String |
PARAM_LANGUAGE
Param name for the html checkbox field for the language. |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsDialogCopyLanguage(CmsJspActionElement jsp)
Public constructor. |
|
CmsDialogCopyLanguage(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
void |
actionUpdateLanguages()
Updates the languages of the current xmlcontent by copying from the current language. |
java.lang.String |
buildLanguageList()
Builds the html String for a form list of all possible page elements. |
java.util.Locale |
getElementLocale()
Returns the current element locale. |
java.lang.String |
getParamElementLanguage()
Returns the current element language. |
java.lang.String |
getParamTempfile()
Returns the name of the temporary file. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
void |
setParamElementLanguage(java.lang.String elementLanguage)
Sets the current language. |
void |
setParamLanguage(java.lang.String language)
Sets the list of selected languages. |
void |
setParamTempfile(java.lang.String fileName)
Sets the name of the temporary file. |
protected void |
transferContents(CmsXmlContent content,
java.util.Locale sourceLocale,
java.util.List destLocales)
Copies the contents from a source locale to a number of destination locales by overwriting them. |
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACTION_UPDATE_LANGUAGES
public static final java.lang.String DIALOG_TYPE
public static final java.lang.String DIALOG_UPDATE_LANGUAGES
public static final java.lang.String PARAM_LANGUAGE
Constructor Detail |
---|
public CmsDialogCopyLanguage(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsDialogCopyLanguage(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page contextreq
- the JSP requestres
- the JSP responseMethod Detail |
---|
public void actionUpdateLanguages() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if there is an error including the error pagepublic java.lang.String buildLanguageList()
public java.util.Locale getElementLocale()
public java.lang.String getParamElementLanguage()
public java.lang.String getParamTempfile()
public void setParamElementLanguage(java.lang.String elementLanguage)
elementLanguage
- the current element languagepublic void setParamLanguage(java.lang.String language)
language
- a selected languagepublic void setParamTempfile(java.lang.String fileName)
fileName
- the name of the temporary fileprotected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsDialog
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected void transferContents(CmsXmlContent content, java.util.Locale sourceLocale, java.util.List destLocales) throws CmsException
content
- the xml contentsourceLocale
- the source localedestLocales
- a list of destination locales
CmsException
- if something goes wrong
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |