public final class HtmlUtil extends Object
Utility class for HTML output.
Modifier and Type | Method and Description |
---|---|
static int |
cssImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for CSS script.
|
static int |
iconImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for icons.
|
static int |
imgImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for images.
|
static int |
javascriptImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for Javascript script.
|
static String |
writeScriptImport(ConvertibleNut nut,
String workflowContextPath,
String... attributes)
Writes the import statement in HTML into the output stream for the given nut, using a default
UrlProviderFactory . |
static String |
writeScriptImport(ConvertibleNut nut,
UrlProvider urlProvider,
String... attributes)
Writes the import statement in HTML into the output stream for the given nut.
|
public static String writeScriptImport(ConvertibleNut nut, String workflowContextPath, String... attributes) throws IOException
Writes the import statement in HTML into the output stream for the given nut, using a default UrlProviderFactory
.
workflowContextPath
- the workflow context pathnut
- the nut to importattributes
- some attributes to insert in the written scriptIOException
- if an I/O error occurspublic static String writeScriptImport(ConvertibleNut nut, UrlProvider urlProvider, String... attributes) throws IOException
Writes the import statement in HTML into the output stream for the given nut.
urlProvider
- the UrlProvider
nut
- the nut to importattributes
- some attributes to insert in the written scriptIOException
- if an I/O error occurspublic static int iconImport(ConvertibleNut nut, UrlProvider urlProvider, StringBuilder sb)
Generates import for icons.
urlProvider
- the UrlProvider
nut
- the .ICO nutsb
- the builder where statement is appendedpublic static int cssImport(ConvertibleNut nut, UrlProvider urlProvider, StringBuilder sb)
Generates import for CSS script.
urlProvider
- the UrlProvider
nut
- the CSS nutsb
- the builder where statement is appendedpublic static int javascriptImport(ConvertibleNut nut, UrlProvider urlProvider, StringBuilder sb)
Generates import for Javascript script.
nut
- the Javascript nuturlProvider
- the UrlProvider
sb
- the builder where statement is appendedpublic static int imgImport(ConvertibleNut nut, UrlProvider urlProvider, StringBuilder sb)
Generates import for images.
nut
- the image nuturlProvider
- the UrlProvider
sb
- the builder where statement is appendedCopyright © 2012-2015. All Rights Reserved.