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

      • 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 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 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.