public class StaticPageUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
renderHTML(Collection<Component> components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
|
static String |
renderHTML(Component... components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
|
static String |
renderHTMLContent(Component... components) |
static void |
saveHTMLFile(File outputFile,
Component... components)
A version of
renderHTML(Component...) that exports the resulting HTML to the specified File. |
static void |
saveHTMLFile(String outputPath,
Component... components)
A version of
renderHTML(Component...) that exports the resulting HTML to the specified path. |
public static String renderHTML(Collection<Component> components)
components - Components to renderpublic static String renderHTML(Component... components)
components - Components to renderpublic static String renderHTMLContent(Component... components) throws Exception
Exceptionpublic static void saveHTMLFile(String outputPath, Component... components) throws IOException
renderHTML(Component...) that exports the resulting HTML to the specified path.outputPath - Output pathcomponents - Components to renderIOExceptionpublic static void saveHTMLFile(File outputFile, Component... components) throws IOException
renderHTML(Component...) that exports the resulting HTML to the specified File.outputFile - Output pathcomponents - Components to renderIOExceptionCopyright © 2021. All rights reserved.