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 a PrintStream.
    Author:
    Miguel Gamboa created on 29-03-2012
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String render()
      Returns a new String with the HTML content of this view.
      String render​(T model)
      Returns a new String with the HTML content of this view.
      HtmlWriter<T> setPrintStream​(PrintStream out)
      Sets the current PrintStream.
      void write()
      Writes into an internal PrintStream the HTML content.
      void write​(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.
      • render

        String render()
        Returns a new String with the HTML content of this view.
      • render

        String render​(T model)
        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.