Package com.webfirmframework.wffweb.view
Class AbstractHtmlView
java.lang.Object
com.webfirmframework.wffweb.view.AbstractHtmlView
- All Implemented Interfaces:
TagBase
,HtmlView
,Serializable
,Cloneable
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setPreserveOutputBufferContent
(boolean preserveOutputBufferContent) To preserve the content inOutputBuffer
inHtmlView#develop(OutputBuffer)
method argument so that the new content can be appended in the next invocation ofHtmlView#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.toHtmlString
(String charset) gets the html string of the tag including the child tags/values using the given charset.toHtmlString
(Charset charset) gets the html string of the tag including the child tags/values using the given charset.toString()
gets the html string of the tag including the child tags/values.
-
Constructor Details
-
AbstractHtmlView
public AbstractHtmlView()
-
-
Method Details
-
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 interfaceTagBase
- Returns:
String
equalent to the html string of the tag including the child tags.
-
toHtmlString
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 interfaceTagBase
- 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
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 interfaceTagBase
- 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
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 interfaceTagBase
- 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
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 interfaceTagBase
- 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
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 interfaceTagBase
- 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
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. -
isPreserveOutputBufferContent
public boolean isPreserveOutputBufferContent()- Returns:
- the preserveOutputBufferContent
-
setPreserveOutputBufferContent
public void setPreserveOutputBufferContent(boolean preserveOutputBufferContent) To preserve the content inOutputBuffer
inHtmlView#develop(OutputBuffer)
method argument so that the new content can be appended in the next invocation ofHtmlView#develop(OutputBuffer)
method. The next invocation can be done by invoking methods likeAbstractHtmlView#toHtmlString()
andAbstractHtmlView#toHtmlString(boolean)
.- Parameters:
preserveOutputBufferContent
-true
to preserve andfalse
for not to preserve. The default values isfalse
.
-