Class FormDesignerPluginBean

  • All Implemented Interfaces:
    Serializable

    @RequestScoped
    @Named
    public class FormDesignerPluginBean
    extends Object
    implements Serializable
    Bean for the form designer. Handles plugin-related functions, such as providing the JavaScript and CSS required by widget plugins.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
    • Constructor Detail

      • FormDesignerPluginBean

        public FormDesignerPluginBean()
    • Method Detail

      • getPluginCssForDesignerUiUrls

        public List<String> getPluginCssForDesignerUiUrls()
        Returns:
        The URL for the resource that serves the CSS form the form designer UI required by widget plugins.
      • getPluginCssStreamedContent

        public org.primefaces.model.StreamedContent getPluginCssStreamedContent​(long clientId,
                                                                                String pluginName)
        Parameters:
        clientId - Current client ID.
        pluginName - Name of the widget plugin.
        Returns:
        The CSS for the form inside the designer required by widget plugin for the given client.
      • getPluginCssForDesignerUiStreamedContent

        public org.primefaces.model.StreamedContent getPluginCssForDesignerUiStreamedContent​(long clientId,
                                                                                             String pluginName)
        Parameters:
        clientId - Current client ID.
        pluginName - Name of the widget plugin.
        Returns:
        The CSS for the form inside the designer required by widget plugin for the given client.
      • getPluginCssFontFaceInfoStreamedContent

        public org.primefaces.model.StreamedContent getPluginCssFontFaceInfoStreamedContent​(long clientId,
                                                                                            String pluginName)
        Parameters:
        clientId - Current client ID.
        pluginName - Name of the widget plugin.
        Returns:
        The CSS for the form inside the designer required by widget plugin for the given client.
      • getPluginCssUrls

        public List<CssWithFontFacesInfo> getPluginCssUrls()
        Returns:
        The URL for the resource that serves the CSS for the form within the designer required by widget plugins.
      • getPluginJavaScriptStreamedContent

        public org.primefaces.model.StreamedContent getPluginJavaScriptStreamedContent​(long clientId,
                                                                                       String pluginName)
        Parameters:
        clientId - Current client ID.
        pluginName - Name of the widget plugin.
        Returns:
        The JavaScript required by widget plugin for the given client.
      • getPluginJavaScriptUrls

        public List<String> getPluginJavaScriptUrls()
        Returns:
        The URL for the resource that serves the JavaScript required by widget plugins.