public class CmsGalleryActionElement extends CmsGwtActionElement
see jsp file /system/modules/org.opencms.ade.galleries/testVfs.jsp.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMS_MODULE_NAME
The OpenCms module name.
|
static java.lang.String |
GWT_MODULE_NAME
The GWT module name.
|
SCRIPT_TAG_CLOSE, SCRIPT_TAG_OPEN
NOT_INITIALIZED
Constructor and Description |
---|
CmsGalleryActionElement(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
export()
Returns the serialized data for the core provider wrapped in a script tag.
|
java.lang.String |
exportAll()
Returns the serialized data for the core provider.
|
java.lang.String |
exportForContainerpage()
Returns the serialized initial data for gallery dialog within the container-page editor.
|
java.lang.String |
exportWidget()
Exports the gallery messages for widget use.
|
java.lang.String |
getTitle()
Returns the editor title.
|
boolean |
isEditorMode()
Returns if the current gallery mode is the editor mode (used inside a rich text editor).
|
boolean |
isViewMode()
Returns true if the gallery mode is set to 'view'.
|
boolean |
isWidgetMode()
Returns if the current gallery mode is the widget mode (used within xml-content editor etc.).
|
createNoCacheScript, createNoCacheScript, export, exportAll, exportCommon, exportDictionary, exportDictionary, exportMeta, exportModuleScriptTag, getCoreData, getFontIconCssLink, getWorkplaceLocale, serialize, wrapScript
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
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, handleMissingFlexController, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
public static final java.lang.String CMS_MODULE_NAME
public static final java.lang.String GWT_MODULE_NAME
public CmsGalleryActionElement(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page context objectreq
- the JSP requestres
- the JSP responsepublic java.lang.String export() throws java.lang.Exception
CmsGwtActionElement
export
in class CmsGwtActionElement
java.lang.Exception
- if something goes wrongCmsGwtActionElement.export()
public java.lang.String exportAll() throws java.lang.Exception
CmsGwtActionElement
exportAll
in class CmsGwtActionElement
java.lang.Exception
- if something goes wrongCmsGwtActionElement.exportAll()
public java.lang.String exportForContainerpage() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic java.lang.String exportWidget()
public java.lang.String getTitle()
public boolean isEditorMode()
true
if the gallery was opened from the editorpublic boolean isViewMode()
public boolean isWidgetMode()
true
if the gallery was opened as a widget