Interface IWebappAuthorEditorAccess

    • Method Detail

      • getReadOnlyReason

        ReadOnlyReason getReadOnlyReason()
        Returns:
        The reason for which the editor is read-only.
      • isModified

        boolean isModified()
        Call this method to determine the modified status of this object. If the modified status was set to true during a "compound edit" AuthorDocumentController.beginCompoundEdit() this method should also be called inside the same "compound edit".
        Specified by:
        isModified in interface ModifiedStatusProvider
        Returns:
        true if this object contains modifications.
      • changeActiveCssGroups

        void changeActiveCssGroups​(java.util.Set<java.lang.String> titles)
                            throws java.io.IOException
        Each framework (document type) can provide a list of CSS files that can be selected (activated) to change the rendering of the documents described by the framework rules. Each CSS file have a title associated with it. Call this method to change the active CSS files that will be used to render the document from the current editor. To find the list of all available CSS titles for a specific document type you can call DocumentTypeInfo.getAvailableCssGroups().
        Parameters:
        titles - The titles of the CSS files to use.
        Throws:
        java.io.IOException - If the CSS parsing fails.
        Since:
        20.1
      • getActiveCssGroupsTitles

        java.util.List<java.lang.String> getActiveCssGroupsTitles()
        Each framework (document type) can provide a list of CSS files that can be selected (activated) to change the rendering of the documents described by the framework rules. Each CSS file have a title associated with it. This method returns the list of titles for all (active) CSS files that are used to render the document from the current editor. To find the list of all available CSS titles for a specific document type you can call DocumentTypeInfo.getAvailableCssGroups().
        Returns:
        The list of titles of the active CSS groups.
        Since:
        20.1