org.opencms.ade.galleries
Class CmsGalleryActionElement

java.lang.Object
  extended by org.opencms.jsp.CmsJspBean
      extended by org.opencms.jsp.CmsJspActionElement
          extended by org.opencms.gwt.CmsGwtActionElement
              extended by org.opencms.ade.galleries.CmsGalleryActionElement

public class CmsGalleryActionElement
extends CmsGwtActionElement

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
static java.lang.String MODULE_NAME
          The 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
CmsGalleryActionElement(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Constructor.
 
Method Summary
 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 getTitle()
          Returns the editor title.
 boolean isEditorMode()
          Returns if the current gallery mode is the editor mode (used inside a rich text editor).
 boolean isWidgetMode()
          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, export, exportAll, getCoreData, 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, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_NAME

public static final java.lang.String MODULE_NAME
The module name.

See Also:
Constant Field Values
Constructor Detail

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 object
req - the JSP request
res - the JSP response
Method Detail

export

public java.lang.String export()
                        throws java.lang.Exception
Description copied from class: CmsGwtActionElement
Returns the serialized data for the core provider wrapped in a script tag.

Overrides:
export in class CmsGwtActionElement
Returns:
the data
Throws:
java.lang.Exception - if something goes wrong
See Also:
CmsGwtActionElement.export()

exportAll

public java.lang.String exportAll()
                           throws java.lang.Exception
Description copied from class: CmsGwtActionElement
Returns the serialized data for the core provider.

Overrides:
exportAll in class CmsGwtActionElement
Returns:
the data
Throws:
java.lang.Exception - if something goes wrong
See Also:
CmsGwtActionElement.exportAll()

exportForContainerpage

public java.lang.String exportForContainerpage()
                                        throws java.lang.Exception
Returns the serialized initial data for gallery dialog within the container-page editor.

Returns:
the data
Throws:
java.lang.Exception - if something goes wrong

getTitle

public java.lang.String getTitle()
Returns the editor title.

Returns:
the editor title

isEditorMode

public boolean 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

isWidgetMode

public boolean 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