|
||||||||||
| 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.galleries.A_CmsGallery
org.opencms.workplace.galleries.CmsImageGallery
public class CmsImageGallery
Generates the image gallery popup window which can be used in editors or as a dialog widget.
| Field Summary | |
|---|---|
static String |
URI_GALLERY
URI of the image gallery popup dialog. |
| Fields inherited from class org.opencms.workplace.galleries.A_CmsGallery |
|---|
ACTION_DELETE, ACTION_LIST, ACTION_SEARCH, ACTION_UPLOAD, CSS_FILENAME, DIALOG_DELETE, DIALOG_EDITPROPERTY, DIALOG_LIST, DIALOG_SEARCH, DIALOG_TYPE, DIALOG_UPLOAD, MODE_EDITOR, MODE_VIEW, MODE_WIDGET, OPEN_URI_SUFFIX, PARAM_DIALOGMODE, PARAM_FIELDID, PARAM_GALLERY_TYPENAME, PARAM_GALLERYPATH, PARAM_PAGE, PARAM_PROPERTYVALUE, PARAM_RESOURCEPATH, PARAM_SEARCHWORD, PATH_GALLERIES |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsImageGallery()
Public empty constructor, required for A_CmsGallery.createInstance(String, CmsJspActionElement). |
|
CmsImageGallery(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsImageGallery(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
String |
applyButton()
Generates an apply button for the gallery button bar. |
protected String |
buildGalleryItemListCustomEndCols(CmsResource res,
String tdClass)
Generates the HTML for custom columns to shown at the end of the list of gallery columns. |
protected String |
buildGalleryItemListCustomStartCols(CmsResource res,
String tdClass)
Generates the HTML for custom columns to shown at the start of the list of gallery columns. |
String |
buildGalleryItemPreview()
Builds the html String for the preview frame. |
int |
getGalleryItemsTypeId()
Returns the type id of the gallery items that should be listed. |
Integer |
getOrder()
Returns the order of the implemented gallery, used to sort the gallery buttons in the editors. |
String |
getPreviewBodyStyle()
Returns the style for the body tag of the preview frame. |
void |
init()
Initialization method that is called after the gallery instance has been created. |
String |
previewButton()
Generates a preview button for the gallery button bar. |
String |
targetSelectBox()
Generates a HTML String representing a target select box. |
| 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 String URI_GALLERY
| Constructor Detail |
|---|
public CmsImageGallery()
A_CmsGallery.createInstance(String, CmsJspActionElement).
public CmsImageGallery(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsImageGallery(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
public String applyButton()
A_CmsGalleryThe default apply button calls the javascript function link(resourcePath, input.title.value, input.title.value). Overwrite this method if necessary in the specified gallery class.
applyButton in class A_CmsGalleryA_CmsGallery.applyButton()public String buildGalleryItemPreview()
buildGalleryItemPreview in class A_CmsGallerypublic int getGalleryItemsTypeId()
A_CmsGalleryIn case of downloadgallery use '-1' to list all resources excluding folders.
getGalleryItemsTypeId in class A_CmsGalleryA_CmsGallery.getGalleryItemsTypeId()public Integer getOrder()
getOrder in class A_CmsGallerypublic String getPreviewBodyStyle()
A_CmsGallery
getPreviewBodyStyle in class A_CmsGalleryA_CmsGallery.getPreviewBodyStyle()public void init()
A_CmsGallery
init in class A_CmsGalleryA_CmsGallery.init()public String previewButton()
A_CmsGalleryOverwrite this method if neccessary in the specified gallery class.
previewButton in class A_CmsGalleryA_CmsGallery.previewButton()public String targetSelectBox()
A_CmsGallery
targetSelectBox in class A_CmsGalleryA_CmsGallery.targetSelectBox()
protected String buildGalleryItemListCustomEndCols(CmsResource res,
String tdClass)
A_CmsGallery
buildGalleryItemListCustomEndCols in class A_CmsGalleryres - the current VFS resourcetdClass - the current syle sheet class name for the table cell
A_CmsGallery.buildGalleryItemListCustomEndCols(org.opencms.file.CmsResource, java.lang.String)
protected String buildGalleryItemListCustomStartCols(CmsResource res,
String tdClass)
A_CmsGallery
buildGalleryItemListCustomStartCols in class A_CmsGalleryres - the current VFS resourcetdClass - the current syle sheet class name for the table cell
A_CmsGallery.buildGalleryItemListCustomStartCols(org.opencms.file.CmsResource, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||