Class AbstractJspFactory

    • Constructor Detail

      • AbstractJspFactory

        public AbstractJspFactory()
        Create a new factory instance.
    • Method Detail

      • prepareContext

        protected void prepareContext​(JspContext jspContext)
        Prepare the JSP context by adding all registered script and stylesheet references to it.
        Parameters:
        jspContext - The context to add the scripts to
      • setScript

        @VariableSetter
        @PathSetter
        public void setScript​(String script)
        Add a reference to a javascript file to the factory.
        Parameters:
        script - The script to add
      • setStylesheet

        @VariableSetter
        @PathSetter
        public void setStylesheet​(String stylesheet)
        Add a reference to a CSS stylesheet file to the factory.
        Parameters:
        stylesheet - The stylesheet to add
      • getScripts

        public Set<String> getScripts()
        Get a set with all script references.
        Returns:
        A set or null if no scripts has been added
      • getStylesheets

        public Set<String> getStylesheets()
        Get a set with all stylesheet references.
        Returns:
        A set or null if no stylesheets has been added
      • setParameter

        @VariableSetter
        @PathSetter
        public void setParameter​(String key,
                                 String value)
        Generic parameter setter metod.
        Parameters:
        key - The name of the parameter
        value - The value of the parameter
        Since:
        3.3
      • getParameter

        public String getParameter​(String key)
        Get a generic parameter value.
        Parameters:
        key - The name of the parameter
        Returns:
        The value of the parameter, or null if no value has been defined
        Since:
        3.3