|
||||||
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.commons.CmsRenameImages
public class CmsRenameImages
Provides methods for the rename images dialog.
The following files use this class:
Field Summary | |
---|---|
static int |
ACTION_RENAMEIMAGES
Value for the action: rename images. |
static java.lang.String |
DIALOG_TYPE
The dialog type. |
static java.lang.String |
OPTION_DECIMALPLACES_1
Selectbox option for decimal places selection: 1 place. |
static java.lang.String |
OPTION_DECIMALPLACES_2
Selectbox option for decimal places selection: 2 places. |
static java.lang.String |
OPTION_DECIMALPLACES_3
Selectbox option for decimal places selection: 3 places. |
static java.lang.String |
OPTION_DECIMALPLACES_4
Selectbox option for decimal places selection: 4 places. |
static java.lang.String |
PARAM_PLACES
Request parameter name for the counter places. |
static java.lang.String |
PARAM_PREFIX
Request parameter name for the image prefix. |
static java.lang.String |
PARAM_REMOVETITLE
Request parameter name for the remove title flag. |
static java.lang.String |
PARAM_STARTCOUNT
Request parameter name for the start count. |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsRenameImages(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsRenameImages(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
void |
actionRenameImages()
Performs the rename images action, will be called by the JSP page. |
java.lang.String |
buildImageInformation()
Returns information about the image count of the selected gallery folder. |
java.lang.String |
buildSelectPlaces(java.lang.String htmlAttributes)
Builds the html for the default copy folder mode select box. |
java.lang.String |
getDefaultPrefix()
Returns the default prefix shown when opening the dialog. |
java.lang.String |
getDefaultStartcount()
Returns the default start count shown when opening the dialog. |
java.lang.String |
getParamPlaces()
Returns the value of the places parameter. |
java.lang.String |
getParamPrefix()
Returns the value of the prefix parameter. |
java.lang.String |
getParamRemovetitle()
Returns the value of the remove title parameter. |
java.lang.String |
getParamStartcount()
Returns the value of the startcount parameter. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected boolean |
performDialogOperation()
Performs the rename images operation. |
void |
setParamPlaces(java.lang.String paramPlaces)
Sets the value of the places parameter. |
void |
setParamPrefix(java.lang.String paramPrefix)
Sets the value of the prefix parameter. |
void |
setParamRemovetitle(java.lang.String paramRemovetitle)
Sets the value of the remove title parameter. |
void |
setParamStartcount(java.lang.String paramStartcount)
Sets the value of the startcount parameter. |
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_RENAMEIMAGES
public static final java.lang.String DIALOG_TYPE
public static final java.lang.String OPTION_DECIMALPLACES_1
public static final java.lang.String OPTION_DECIMALPLACES_2
public static final java.lang.String OPTION_DECIMALPLACES_3
public static final java.lang.String OPTION_DECIMALPLACES_4
public static final java.lang.String PARAM_PLACES
public static final java.lang.String PARAM_PREFIX
public static final java.lang.String PARAM_REMOVETITLE
public static final java.lang.String PARAM_STARTCOUNT
Constructor Detail |
---|
public CmsRenameImages(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsRenameImages(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 actionRenameImages() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if problems including sub-elements occurpublic java.lang.String buildImageInformation()
public java.lang.String buildSelectPlaces(java.lang.String htmlAttributes)
htmlAttributes
- optional html attributes for the &lgt;select> tag
public java.lang.String getDefaultPrefix()
public java.lang.String getDefaultStartcount()
public java.lang.String getParamPlaces()
public java.lang.String getParamPrefix()
public java.lang.String getParamRemovetitle()
public java.lang.String getParamStartcount()
public void setParamPlaces(java.lang.String paramPlaces)
paramPlaces
- the value of the places parameterpublic void setParamPrefix(java.lang.String paramPrefix)
paramPrefix
- the value of the prefix parameterpublic void setParamRemovetitle(java.lang.String paramRemovetitle)
paramRemovetitle
- the value of the remove title parameterpublic void setParamStartcount(java.lang.String paramStartcount)
paramStartcount
- the value of the startcount parameterprotected 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 boolean performDialogOperation() throws CmsException
CmsException
- if renaming is not successful
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |