|
||||||
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_CmsAjaxGallery
org.opencms.workplace.galleries.CmsAjaxLinkGallery
public class CmsAjaxLinkGallery
Provides the specific constants, members and helper methods to generate the content of the external link gallery dialog used in the XML content editors, WYSIWYG editors and context menu.
Field Summary | |
---|---|
static java.lang.String |
GALLERYTYPE_NAME
Type name of the link gallery. |
static java.lang.String |
OPEN_URI_SUFFIX
The uri suffix for the gallery start page. |
Fields inherited from class org.opencms.workplace.galleries.A_CmsAjaxGallery |
---|
DIALOG_CHANGEITEMLINKURL, DIALOG_CHANGEITEMTITLE, DIALOG_GETACTIVEITEM, DIALOG_GETCATEGORIES, DIALOG_GETGALLERIES, DIALOG_GETGALLERY, DIALOG_GETITEMS, DIALOG_LIST, LISTMODE_CATEGORY, LISTMODE_GALLERY, m_galleryTypeParams, MODE_EDITOR, MODE_VIEW, MODE_WIDGET, PARAM_DIALOGMODE, PARAM_EDITEDRESOURCE, PARAM_FIELDID, PARAM_GALLERYPATH, PARAM_ITEMPATH, PARAM_PARAMS, PARAM_STARTUPFOLDER, PARAM_STARTUPTYPE, PATH_GALLERIES, RETURNVALUE_NONE |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsAjaxLinkGallery()
Public empty constructor, required for A_CmsAjaxGallery.createInstance(String, CmsJspActionElement) . |
|
CmsAjaxLinkGallery(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsAjaxLinkGallery(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
protected void |
buildJsonItemSpecificPart(JSONObject jsonObj,
CmsResource res,
java.lang.String sitePath)
Fills the JSON object with the specific information used for pointer file resource type. |
protected void |
changeItemLinkUrl(java.lang.String itemUrl)
Writes the current link into the pointer resource. |
int |
getGalleryItemsTypeId()
Returns the type id of the gallery items that should be listed. |
int |
getGalleryTypeId()
Returns the type id of this gallery instance. |
java.lang.String |
getGalleryTypeName()
Returns the type name of this gallery instance. |
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 java.lang.String GALLERYTYPE_NAME
public static final java.lang.String OPEN_URI_SUFFIX
Constructor Detail |
---|
public CmsAjaxLinkGallery()
A_CmsAjaxGallery.createInstance(String, CmsJspActionElement)
.
public CmsAjaxLinkGallery(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsAjaxLinkGallery(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 int getGalleryItemsTypeId()
A_CmsAjaxGallery
In case of downloadgallery use '-1' to list all resources excluding folders.
getGalleryItemsTypeId
in class A_CmsAjaxGallery
A_CmsAjaxGallery.getGalleryItemsTypeId()
public int getGalleryTypeId()
A_CmsAjaxGallery
getGalleryTypeId
in class A_CmsAjaxGallery
A_CmsAjaxGallery.getGalleryTypeId()
public java.lang.String getGalleryTypeName()
A_CmsAjaxGallery
getGalleryTypeName
in class A_CmsAjaxGallery
A_CmsAjaxGallery.getGalleryTypeName()
protected void buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
pointer
: the content of the pointer resource. This could be an external or internal link.
buildJsonItemSpecificPart
in class A_CmsAjaxGallery
jsonObj
- containing information used by all possible resourceres
- the resource to create the object fromsitePath
- site path to the objectA_CmsAjaxGallery.buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, String sitePath)
protected void changeItemLinkUrl(java.lang.String itemUrl)
changeItemLinkUrl
in class A_CmsAjaxGallery
itemUrl
- the pointer resource to change the link ofchangeItemLinkUrl(String)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |