Class AbstractHtmlView

  • All Implemented Interfaces:
    TagBase, HtmlView, java.io.Serializable, java.lang.Cloneable


    public abstract class AbstractHtmlView
    extends java.lang.Object
    implements HtmlView
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractHtmlView​()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isPreserveOutputBufferContent​()  
      void setPreserveOutputBufferContent​(boolean preserveOutputBufferContent)
      To preserve the content in OutputBuffer in HtmlView#develop(OutputBuffer) method argument so that the new content can be appended in the next invocation of HtmlView#develop(OutputBuffer) method.
      java.lang.String toHtmlString​()
      gets the html string of the tag including the child tags/values.
      java.lang.String toHtmlString​(boolean rebuild)
      rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
      java.lang.String toHtmlString​(boolean rebuild, java.lang.String charset)
      rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
      java.lang.String toHtmlString​(boolean rebuild, java.nio.charset.Charset charset)
      rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
      java.lang.String toHtmlString​(java.lang.String charset)
      gets the html string of the tag including the child tags/values using the given charset.
      java.lang.String toHtmlString​(java.nio.charset.Charset charset)
      gets the html string of the tag including the child tags/values using the given charset.
      java.lang.String toString​()
      gets the html string of the tag including the child tags/values.
      • Methods inherited from interface com.webfirmframework.wffweb.view.HtmlView

        develop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractHtmlView

        public AbstractHtmlView​()
    • Method Detail

      • toHtmlString

        public java.lang.String toHtmlString​()
        Description copied from interface: TagBase
        gets the html string of the tag including the child tags/values. rebuilds the html string if the child tags/values or attributes have been modified.
        Specified by:
        toHtmlString in interface TagBase
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toHtmlString

        public java.lang.String toHtmlString​(java.nio.charset.Charset charset)
        Description copied from interface: TagBase
        gets the html string of the tag including the child tags/values using the given charset. rebuilds the html string if the child tags/values or attributes have been modified.
        Specified by:
        toHtmlString in interface TagBase
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toHtmlString

        public java.lang.String toHtmlString​(java.lang.String charset)
        Description copied from interface: TagBase
        gets the html string of the tag including the child tags/values using the given charset. rebuilds the html string if the child tags/values or attributes have been modified.
        Specified by:
        toHtmlString in interface TagBase
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toHtmlString

        public java.lang.String toHtmlString​(boolean rebuild)
        Description copied from interface: TagBase
        rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
        Specified by:
        toHtmlString in interface TagBase
        Parameters:
        rebuild - true to rebuild & false to return previously built string.
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toHtmlString

        public java.lang.String toHtmlString​(boolean rebuild,
                                             java.nio.charset.Charset charset)
        Description copied from interface: TagBase
        rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
        Specified by:
        toHtmlString in interface TagBase
        Parameters:
        rebuild - true to rebuild & false to return previously built string.
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toHtmlString

        public java.lang.String toHtmlString​(boolean rebuild,
                                             java.lang.String charset)
        Description copied from interface: TagBase
        rebuilds the html string of the tag including the child tags/values if parameter is true, otherwise returns the html string prebuilt and kept in the cache.
        Specified by:
        toHtmlString in interface TagBase
        Parameters:
        rebuild - true to rebuild & false to return previously built string.
        Returns:
        String equalent to the html string of the tag including the child tags.
      • toString

        public java.lang.String toString​()
        Description copied from interface: TagBase
        gets the html string of the tag including the child tags/values. rebuilds the html string if the child tags/values or attributes have been modified.
        Specified by:
        toString in interface TagBase
        Overrides:
        toString in class java.lang.Object
        Returns:
        String equalent to the html string of the tag including the child tags.
      • isPreserveOutputBufferContent

        public boolean isPreserveOutputBufferContent​()
        Returns:
        the preserveOutputBufferContent
      • setPreserveOutputBufferContent

        public void setPreserveOutputBufferContent​(boolean preserveOutputBufferContent)
        To preserve the content in OutputBuffer in HtmlView#develop(OutputBuffer) method argument so that the new content can be appended in the next invocation of HtmlView#develop(OutputBuffer) method. The next invocation can be done by invoking methods like AbstractHtmlView#toHtmlString() and AbstractHtmlView#toHtmlString(boolean).
        Parameters:
        preserveOutputBufferContent - true to preserve and false for not to preserve. The default values is false.