Package htmlflow
Class HtmlView
java.lang.Object
htmlflow.HtmlPage
htmlflow.HtmlView
- All Implemented Interfaces:
org.xmlet.htmlapifaster.async.AsyncElement<HtmlPage>,org.xmlet.htmlapifaster.Element<HtmlPage,org.xmlet.htmlapifaster.Element<?, ?>>
Dynamic views can be bound to a Model object.
- Author:
- Miguel Gamboa, Luís Duare
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected final HtmlViewclone(Supplier<HtmlVisitor> visitorSupplier, boolean threadSafe) Since HtmlView is immutable this is the preferred way to create a copy of the existing HtmlView instance with a different threadSafe state.getName()final org.xmlet.htmlapifaster.Html<HtmlPage>html()render()final HtmlViewsetIndented(boolean isIndented) Returns a new instance of HtmlFlow with the same properties of this object but with indented set to the value of isIndented parameter.setOut(Appendable out) voidwrite()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xmlet.htmlapifaster.Element
await, custom, dynamic, of
-
Field Details
-
visitorSupplier
-
-
Method Details
-
html
-
threadSafe
- Specified by:
threadSafein classHtmlPage
-
getVisitor
-
setOut
-
getName
-
render
-
render
-
write
-
write
public void write() -
clone
Since HtmlView is immutable this is the preferred way to create a copy of the existing HtmlView instance with a different threadSafe state.- Parameters:
visitorSupplier-threadSafe-
-
setIndented
Returns a new instance of HtmlFlow with the same properties of this object but with indented set to the value of isIndented parameter.- Specified by:
setIndentedin classHtmlPage
-