Package org.opencms.ade.galleries
Class CmsGalleryActionElement
java.lang.Object
org.opencms.jsp.CmsJspBean
org.opencms.jsp.CmsJspActionElement
org.opencms.gwt.CmsGwtActionElement
org.opencms.ade.galleries.CmsGalleryActionElement
Gallery action used to generate the gallery dialog.
see jsp file /system/modules/org.opencms.ade.galleries/testVfs.jsp.
- Since:
- 8.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The OpenCms module name.static final String
The GWT module name.Fields inherited from class org.opencms.gwt.CmsGwtActionElement
SCRIPT_TAG_CLOSE, SCRIPT_TAG_OPEN
Fields inherited from class org.opencms.jsp.CmsJspActionElement
NOT_INITIALIZED
-
Constructor Summary
ConstructorDescriptionCmsGalleryActionElement
(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionexport()
Returns the serialized data for the core provider wrapped in a script tag.Returns the serialized data for the core provider.Returns the serialized initial data for gallery dialog within the container-page editor.Exports the gallery messages for widget use.getTitle()
Returns the editor title.boolean
Returns if the current gallery mode is the editor mode (used inside a rich text editor).boolean
Returns true if the gallery mode is set to 'view'.boolean
Returns if the current gallery mode is the widget mode (used within xml-content editor etc.).Methods inherited from class org.opencms.gwt.CmsGwtActionElement
createNoCacheScript, createNoCacheScript, export, exportCommon, exportDictionary, exportDictionary, exportMeta, exportModuleScriptTag, getCoreData, getFontIconCssLink, getWorkplaceLocale, serialize, wrapScript
Methods inherited from class org.opencms.jsp.CmsJspActionElement
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, user
Methods inherited from class org.opencms.jsp.CmsJspBean
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, handleMissingFlexController, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
-
Field Details
-
CMS_MODULE_NAME
The OpenCms module name.- See Also:
-
GWT_MODULE_NAME
The GWT module name.
-
-
Constructor Details
-
CmsGalleryActionElement
public CmsGalleryActionElement(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Constructor.- Parameters:
context
- the JSP page context objectreq
- the JSP requestres
- the JSP response
-
-
Method Details
-
export
Description copied from class:CmsGwtActionElement
Returns the serialized data for the core provider wrapped in a script tag.- Overrides:
export
in classCmsGwtActionElement
- Returns:
- the data
- Throws:
Exception
- if something goes wrong- See Also:
-
exportAll
Description copied from class:CmsGwtActionElement
Returns the serialized data for the core provider.- Overrides:
exportAll
in classCmsGwtActionElement
- Returns:
- the data
- Throws:
Exception
- if something goes wrong- See Also:
-
exportForContainerpage
Returns the serialized initial data for gallery dialog within the container-page editor.- Returns:
- the data
- Throws:
Exception
- if something goes wrong
-
exportWidget
Exports the gallery messages for widget use.- Returns:
- the gallery messages
-
getTitle
Returns the editor title.- Returns:
- the editor title
-
isEditorMode
Returns if the current gallery mode is the editor mode (used inside a rich text editor).- Returns:
true
if the gallery was opened from the editor
-
isViewMode
Returns true if the gallery mode is set to 'view'.- Returns:
- true if the gallery mode is 'view'
-
isWidgetMode
Returns if the current gallery mode is the widget mode (used within xml-content editor etc.).- Returns:
true
if the gallery was opened as a widget
-