|
||||||||||
| 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.CmsCommentImages
public class CmsCommentImages
Provides methods for the comment images dialog on image gallery folders.
The following files use this class:
| Field Summary | |
|---|---|
static int |
ACTION_COMMENTIMAGES
Value for the action: comment images. |
static String |
DIALOG_TYPE
The dialog type. |
static String |
PREFIX_DESCRIPTION
The input field prefix for description property fields. |
static String |
PREFIX_TITLE
The input field prefix for title property fields. |
static int |
THUMB_HEIGHT
The height of the dialog thumbnails. |
static int |
THUMB_WIDTH
The width of the dialog thumbnails. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsCommentImages(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsCommentImages(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
actionCommentImages()
Performs the comment images action, will be called by the JSP page. |
String |
buildDialogForm()
Returns the HTML for the dialog input form to comment the images. |
protected List |
getImages()
Returns the image resources of the gallery folder which are edited in the dialog form. |
protected CmsImageScaler |
getImageScaler()
Returns the initialized image scaler object used to generate thumbnails for the dialog form. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected boolean |
performDialogOperation()
Performs the comment images operation. |
protected void |
writeProperty(CmsResource res,
String propName,
String propValue,
CmsProperty currentProperty)
Writes a property value for a resource, if the value was changed. |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, 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_COMMENTIMAGES
public static final String DIALOG_TYPE
public static final String PREFIX_DESCRIPTION
public static final String PREFIX_TITLE
public static final int THUMB_HEIGHT
public static final int THUMB_WIDTH
| Constructor Detail |
|---|
public CmsCommentImages(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsCommentImages(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
public void actionCommentImages()
throws JspException
JspException - if problems including sub-elements occurpublic String buildDialogForm()
protected List getImages()
protected CmsImageScaler getImageScaler()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - the workplace settingsrequest - the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected boolean performDialogOperation()
throws CmsException
CmsException - if commenting is not successful
protected void writeProperty(CmsResource res,
String propName,
String propValue,
CmsProperty currentProperty)
throws CmsException
res - the resource to write the property topropName - the name of the property definitionpropValue - the new value of the propertycurrentProperty - the old property object
CmsException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||