Interface I_CmsEditor

    • Method Detail

      • getPriority

        int getPriority()
        Gets the priority.

        If multiple editors for the same resource type are available, the one with the highest priority will be picked.

        Returns:
        the priority
      • initUI

        void initUI​(I_CmsAppUIContext context,
                    CmsResource resource,
                    java.lang.String backLink,
                    java.util.Map<java.lang.String,​java.lang.String> params)
        Within this method the editor UI should be initialized.

        Use the context to add the app's components to the UI.

        Parameters:
        context - the UI context
        resource - the resource to edit
        backLink - the link to return to when closing the editor
        params - optional parameters
      • matchesResource

        boolean matchesResource​(CmsObject cms,
                                CmsResource resource,
                                boolean plainText)
        Checks whether the editor is available for the given resource.

        Parameters:
        cms - the CMS context
        resource - the resource to edit
        plainText - if plain text editing is required
        Returns:
        true if the editor is available for the given resource
      • matchesType

        boolean matchesType​(I_CmsResourceType type,
                            boolean plainText)
        Checks whether the editor is available for the given resource type.

        Parameters:
        type - the resource type to edit
        plainText - if plain text editing is required
        Returns:
        true if the editor is available for the given resource