Class AbstractHtmlView

java.lang.Object
com.webfirmframework.wffweb.view.AbstractHtmlView
All Implemented Interfaces:
TagBase, HtmlView, Serializable, Cloneable

public abstract class AbstractHtmlView extends Object implements HtmlView
Since:
1.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    gets the html string of the tag including the child tags/values.
    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.
    toHtmlString(boolean rebuild, 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.
    toHtmlString(boolean rebuild, 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.
    gets the html string of the tag including the child tags/values using the given charset.
    gets the html string of the tag including the child tags/values using the given charset.
    gets the html string of the tag including the child tags/values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.webfirmframework.wffweb.view.HtmlView

    develop
  • Constructor Details

    • AbstractHtmlView

      public AbstractHtmlView()
  • Method Details

    • toHtmlString

      public 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 String toHtmlString(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
      Parameters:
      charset - the charset to set for the returning value, eg: StandardCharsets.UTF_8
      Returns:
      String equalent to the html string of the tag including the child tags.
    • toHtmlString

      public String toHtmlString(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
      Parameters:
      charset - the charset to set for the returning value, eg: StandardCharsets.UTF_8.name()
      Returns:
      String equalent to the html string of the tag including the child tags.
    • toHtmlString

      public 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 String toHtmlString(boolean rebuild, 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.
      charset - the charset to set for the returning value, eg: StandardCharsets.UTF_8
      Returns:
      String equalent to the html string of the tag including the child tags.
    • toHtmlString

      public String toHtmlString(boolean rebuild, 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.
      charset - the charset to set for the returning value, eg: StandardCharsets.UTF_8.name()
      Returns:
      String equalent to the html string of the tag including the child tags.
    • toString

      public 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 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.