Package htmlflow
Interface HtmlWriter<T>
-
- Type Parameters:
T- The type of domain object bound to this View.
- All Known Implementing Classes:
DynamicHtml,HtmlView,StaticHtml
public interface HtmlWriter<T>Writes HTML content into aPrintStream.- Author:
- Miguel Gamboa created on 29-03-2012
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringrender()Returns a new String with the HTML content of this view.Stringrender(T model)Returns a new String with the HTML content of this view.HtmlWriter<T>setPrintStream(PrintStream out)Sets the current PrintStream.voidwrite()Writes into an internal PrintStream the HTML content.voidwrite(T model)Writes into an internal PrintStream the HTML content binding the object model with the HTML elements.
-
-
-
Method Detail
-
write
void write()
Writes into an internal PrintStream the HTML content.
-
write
void write(T model)
Writes into an internal PrintStream the HTML content binding the object model with the HTML elements.- Parameters:
model- An object model that could be bind to each element.
-
setPrintStream
HtmlWriter<T> setPrintStream(PrintStream out)
Sets the current PrintStream.
-
render
String render()
Returns a new String with the HTML content of this view.
-
-