Class CmsGalleryActionElement

    • 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

      • 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
      • exportWidget

        public java.lang.String exportWidget()
        Exports the gallery messages for widget use.

        Returns:
        the gallery messages
      • 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
      • isViewMode

        public boolean isViewMode()
        Returns true if the gallery mode is set to 'view'.
        Returns:
        true if the gallery mode is 'view'
      • 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