Class WidgetPluginHelper


  • public final class WidgetPluginHelper
    extends Object
    Utilities for handling widget plugins in the form designer, see FormDesignerPluginBean.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • createPluginCssForDesignerUiStreamedContent

        public static org.primefaces.model.StreamedContent createPluginCssForDesignerUiStreamedContent​(long clientId)
        Parameters:
        clientId - ID of the client for which to fetch the data.
        Returns:
        The CSS for the designer UI required by widget plugin for the given client.
      • createPluginCssForDesignerUiUrl

        public static String createPluginCssForDesignerUiUrl​(javax.faces.context.FacesContext context,
                                                             Mandant client)
        Parameters:
        context - Current faces context.
        client - Current client who opened the designer.
        Returns:
        The URL for the resource that serves the CSS for the designer UI required by widget plugins.
      • createPluginCssStreamedContent

        public static org.primefaces.model.StreamedContent createPluginCssStreamedContent​(long clientId)
        Parameters:
        clientId - ID of the client for which to fetch the data.
        Returns:
        The CSS for the form within the designer required by widget plugin for the given client.
      • createPluginCssUrl

        public static String createPluginCssUrl​(javax.faces.context.FacesContext context,
                                                Mandant client)
        Parameters:
        context - Current faces context.
        client - Current client who opened the designer.
        Returns:
        The URL for the resource that serves the CSS for the form within the designer required by widget plugins.
      • createPluginJavaScriptStreamedContent

        public static org.primefaces.model.StreamedContent createPluginJavaScriptStreamedContent​(long clientId)
        Parameters:
        clientId - ID of the client for which to fetch the data.
        Returns:
        The JavaScript required by widget plugin for the given client.
      • createPluginJavaScriptUrl

        public static String createPluginJavaScriptUrl​(javax.faces.context.FacesContext context,
                                                       Mandant client)
        Parameters:
        context - Current faces context.
        client - Current client who opened the designer.
        Returns:
        The URL for the resource that serves the JavaScript required by widget plugins.