public class HtmlSnippet<T> extends Object implements ConvertsValue<T,String>
| Modifier and Type | Field and Description |
|---|---|
protected static Runnable |
NO_OP |
PASS_THRU| Constructor and Description |
|---|
HtmlSnippet(Html html,
BeanValueProvider values,
StyleService<?> context) |
HtmlSnippet(javax.inject.Provider<ConvertsValue<T,DomBuffer>> generator) |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendTo(Appendable sheet,
Style style) |
String |
convert(T from) |
static void |
doAppend(Appendable sheet,
Style style) |
protected DomBuffer |
newBuffer(Html html,
T from) |
protected DomBuffer |
newChild(DomBuffer buffer,
El el) |
DomBuffer |
toBuffer(T from) |
protected String |
toValue(BeanValueProvider values,
Iterable<String> keys,
String template,
T from) |
protected static final Runnable NO_OP
public HtmlSnippet(Html html, BeanValueProvider values, StyleService<?> context)
public HtmlSnippet(javax.inject.Provider<ConvertsValue<T,DomBuffer>> generator)
public static void appendTo(Appendable sheet, Style style)
public static void doAppend(Appendable sheet, Style style) throws IOException
IOExceptionpublic String convert(T from)
convert in interface ConvertsValue<T,String>from - - An object to convertCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.