Class CmsEditProperties.PropertyEditingContext

    • Method Detail

      • allowCreateProperties

        public boolean allowCreateProperties()
        Returns true if the property definition button should be enabled.

        Returns:
        true if the user should be able to define new properties
      • initCloseHandler

        public void initCloseHandler()
        Initializes the close handler of the dialog.

      • isFocusNameField

        public boolean isFocusNameField()
        Return true if the file name field should be focused after opening the dialog.

        Returns:
        true if the file name field should be focused
      • setAllowCreateProperties

        public void setAllowCreateProperties​(boolean allowCreateProperties)
        Enables / disables the 'define property' functionality.

        Parameters:
        allowCreateProperties - true if the user should be able to create new properties
      • setCancelHandler

        public void setCancelHandler​(java.lang.Runnable cancelHandler)
        Sets the cancel handler.

        Parameters:
        cancelHandler - the cancel handler
      • setDialog

        public void setDialog​(CmsFormDialog formDialog)
        Sets the form dialog.

        Parameters:
        formDialog - the form dialog
      • setFocusNameField

        public void setFocusNameField​(boolean focusNameField)
        Enables / disables focusing on the name field.
        Parameters:
        focusNameField - true if the file name field should be focused after opening the dialog
      • setRestart

        public void setRestart​(java.lang.Runnable command)
        Sets the restart command (used to open the property dialog again after a secondary dialog).
        Parameters:
        command - the restart command