Class CmsDialogProperty

java.lang.Object
org.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
All Implemented Interfaces:
org.opencms.configuration.I_CmsConfigurationParameterHandler, org.opencms.workplace.I_CmsDialogHandler, org.opencms.workplace.I_CmsPostUploadDialogHandler

Provides methods for the special xmlpage property dialog.

This is a special dialog that is used for xmlpages in the workplace and the editors.

Uses methods from the customized property dialog where possible.

The following files use this class:

  • /jsp/editors/dialogs/property.html

Since:
6.0.0
  • Constructor Details

    • CmsDialogProperty

      public CmsDialogProperty(org.opencms.jsp.CmsJspActionElement jsp)
      Public constructor with JSP action element.

      Parameters:
      jsp - an initialized JSP action element
    • CmsDialogProperty

      public CmsDialogProperty(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
      Public constructor with JSP variables.

      Parameters:
      context - the JSP page context
      req - the JSP request
      res - the JSP response
  • Method Details

    • buildEditForm

      Creates the HTML String for the edit properties form.

      Overrides:
      buildEditForm in class CmsPropertyCustom
      Returns:
      the HTML output String for the edit properties form
    • buildSelectTemplates

      public String buildSelectTemplates(String attributes)
      Builds the html for the page template select box.

      Parameters:
      attributes - optional attributes for the <select> tag
      Returns:
      the html for the page template select box
    • hasTemplateChanged

      public boolean hasTemplateChanged()
      Returns if the template property was changed.

      Returns:
      true if the template property was changed, otherwise false
    • performEditOperation

      protected boolean performEditOperation(javax.servlet.http.HttpServletRequest request) throws org.opencms.main.CmsException
      Performs the editing of the resources properties.

      Overrides:
      performEditOperation in class CmsPropertyCustom
      Parameters:
      request - the HttpServletRequest
      Returns:
      true, if the properties were successfully changed, otherwise false
      Throws:
      org.opencms.main.CmsException - if editing is not successful