|
||||||
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.CmsAjaxImageGallery
public class CmsAjaxImageGallery
Provides the specific constants, members and helper methods to generate the content of the image 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 image gallery. |
static java.lang.String |
OPEN_URI_SUFFIX
The uri suffix for the gallery start page. |
static java.lang.String |
PARAM_FORMATNAME
Request parameter name for the format name. |
static java.lang.String |
PARAM_FORMATVALUE
Request parameter name for the format value. |
static java.lang.String |
PARAM_HASHID
Request parameter name for the input field hash id. |
static java.lang.String |
PARAM_IMGHEIGHT
Request parameter name for the image height. |
static java.lang.String |
PARAM_IMGWIDTH
Request parameter name for the image width. |
static java.lang.String |
PARAM_SCALE
Request parameter name for the image scale parameters. |
static java.lang.String |
PARAM_USEFORMATS
Request parameter name for the use formats flag. |
static java.lang.String |
PARAM_WIDGETMODE
Property definition name for the Copyright property. |
static java.lang.String |
PROPERTY_COPYRIGHT
Property definition name for the Copyright property. |
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 | |
---|---|
CmsAjaxImageGallery()
Public empty constructor, required for A_CmsAjaxGallery.createInstance(String, CmsJspActionElement) . |
|
CmsAjaxImageGallery(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsAjaxImageGallery(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 image resource type. |
CmsImageScaler |
getDefaultScaleParams()
Returns the default image scaling parameters for the gallery preview. |
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. |
void |
init()
Initializes the default image scaling parameters for the gallery preview. |
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
public static final java.lang.String PARAM_FORMATNAME
public static final java.lang.String PARAM_FORMATVALUE
public static final java.lang.String PARAM_HASHID
public static final java.lang.String PARAM_IMGHEIGHT
public static final java.lang.String PARAM_IMGWIDTH
public static final java.lang.String PARAM_SCALE
public static final java.lang.String PARAM_USEFORMATS
public static final java.lang.String PARAM_WIDGETMODE
public static final java.lang.String PROPERTY_COPYRIGHT
Constructor Detail |
---|
public CmsAjaxImageGallery()
A_CmsAjaxGallery.createInstance(String, CmsJspActionElement)
.
public CmsAjaxImageGallery(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsAjaxImageGallery(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 CmsImageScaler getDefaultScaleParams()
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()
public void init()
init
in class A_CmsAjaxGallery
A_CmsAjaxGallery.init()
protected void buildJsonItemSpecificPart(JSONObject jsonObj, CmsResource res, java.lang.String sitePath)
scalepath
: scaling parameters.width
: image width.height
: image height.id
: image ID.type
: image type.hash
: image structure id hash code.copyright
: image copyright.
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)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |