Class TextAreaClass

    • Constructor Detail

      • TextAreaClass

        public TextAreaClass()
    • Method Detail

      • getEditorType

        public static TextAreaClass.EditorType getEditorType​(String contentType,
                                                             TextAreaClass.EditorType def)
        Parameters:
        contentType - the content type value
        def - the current editor type
        Returns:
        the editor type compatible with the passed content type, def if several are compatible
        Since:
        10.7RC1
      • getRows

        public int getRows()
      • setRows

        public void setRows​(int rows)
      • getEditor

        public String getEditor()
      • setEditor

        public void setEditor​(String editor)
        Sets the editor meta property.
        Parameters:
        editor - the editor type
        Since:
        8.2RC1
      • setEditor

        public void setEditor​(TextAreaClass.EditorType editorType)
        Sets the editor meta property.
        Parameters:
        editorType - the editor type
        Since:
        8.3
      • getContentType

        public String getContentType()
      • setContentType

        public void setContentType​(String contentType)
      • setContentType

        public void setContentType​(TextAreaClass.ContentType contentType)
        Parameters:
        contentType - the content type
        Since:
        8.3
      • isWysiwyg

        public boolean isWysiwyg​(XWikiContext context)
      • isWikiContent

        public boolean isWikiContent()
        Returns:
        true if the content of this text area is not a wiki syntax content
      • isRestricted

        @Unstable
        public boolean isRestricted()
        Indicate if the content of this property should be executed in a restricted content (provided the type indicate that this content should be executed).
        Returns:
        true if the content of this property should be executed in a restricted content, false otherwise
        Since:
        14.10, 14.4.7, 13.10.11
      • setRestricted

        @Unstable
        public void setRestricted​(boolean restricted)
        Indicate if the content of this property should be executed in a restricted content (provided the type indicate that this content should be executed).
        Parameters:
        restricted - true if the content of this property should be executed in a restricted content, false otherwise
        Since:
        14.10, 14.4.7, 13.10.11