Class StaticPageUtil


  • public class StaticPageUtil
    extends Object
    • Method Detail

      • renderHTML

        public static String renderHTML​(Collection<Component> components)
        Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
        Parameters:
        components - Components to render
        Returns:
        Stand-alone HTML page, as a String
      • renderHTML

        public static String renderHTML​(Component... components)
        Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
        Parameters:
        components - Components to render
        Returns:
        Stand-alone HTML page, as a String
      • saveHTMLFile

        public static void saveHTMLFile​(File outputFile,
                                        Component... components)
                                 throws IOException
        A version of renderHTML(Component...) that exports the resulting HTML to the specified File.
        Parameters:
        outputFile - Output path
        components - Components to render
        Throws:
        IOException