Package htmlflow

Class HtmlView

All Implemented Interfaces:
org.xmlet.htmlapifaster.async.AsyncElement<HtmlPage>, org.xmlet.htmlapifaster.Element<HtmlPage,org.xmlet.htmlapifaster.Element<?,?>>

public class HtmlView extends HtmlPage
Dynamic views can be bound to a Model object.
Author:
Miguel Gamboa, Luís Duare
  • Field Details

  • Method Details

    • html

      public final org.xmlet.htmlapifaster.Html<HtmlPage> html()
      Specified by:
      html in class HtmlPage
    • threadSafe

      public HtmlView threadSafe()
      Specified by:
      threadSafe in class HtmlPage
    • getVisitor

      public HtmlVisitor getVisitor()
    • setOut

      public HtmlView setOut(Appendable out)
    • getName

      public String getName()
    • render

      public String render()
    • render

      public String render(Object model)
    • write

      public void write(Object model)
    • write

      public void write()
    • clone

      protected final HtmlView clone(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.
      Parameters:
      visitorSupplier -
      threadSafe -
    • setIndented

      public final HtmlView setIndented(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.
      Specified by:
      setIndented in class HtmlPage