Package htmlflow

Class StaticHtml

  • All Implemented Interfaces:
    HtmlWriter<Object>, org.xmlet.htmlapifaster.Element<HtmlView<Object>,​org.xmlet.htmlapifaster.Element<?,​?>>

    public class StaticHtml
    extends HtmlView<Object>
    Static Html view.
    Author:
    Miguel Gamboa, Luís Duare
    • Method Detail

      • render

        public final String render()
        Description copied from interface: HtmlWriter
        Returns a new String with the HTML content of this view.
      • render

        public final String render​(Object model)
        Description copied from interface: HtmlWriter
        Returns a new String with the HTML content of this view.
        Parameters:
        model - An object model that could be bind to each element of the view.
      • write

        public final void write()
        Description copied from interface: HtmlWriter
        Writes into an internal PrintStream the HTML content.
      • write

        public final void write​(Object model)
        Description copied from interface: HtmlWriter
        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.
      • clone

        protected final HtmlView<Object> clone​(Supplier<HtmlVisitorCache> 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.
        Specified by:
        clone in class HtmlView<Object>
        Parameters:
        visitorSupplier -
        threadSafe -
      • clone

        protected HtmlView<Object> clone​(HtmlVisitorCache visitor)
        Resulting in a non thread safe view. Receives an existent visitor. Usually for a parent view to share its visitor with a partial.
        Specified by:
        clone in class HtmlView<Object>