Class SharedTagContent.Content<T>
java.lang.Object
com.webfirmframework.wffweb.tag.html.SharedTagContent.Content<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
SharedTagContent<T>
This is a serializable record class for handling content in
SharedTagContent
object.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
boolean
Denotes whether the content type to be treated as HTML when embedding in the consumer tags.boolean
Deprecated.int
hashCode()
boolean
Deprecated.As it is record class no need to use getter method instead usecontentTypeHtml()
.
-
Constructor Details
-
Content
- Parameters:
content
- the content to be embedded in the consumer tags.contentTypeHtml
- true to treat the content as HTML when embedding in the consumer tags otherwise false. Default value is false.
-
Content
Note:contentTypeHtml
will be set asfalse
- Parameters:
content
- the content to be embedded in the consumer tags as plain text.- Since:
- 3.1.0
-
-
Method Details
-
getContent
Deprecated.As it is record class no need to use getter method instead usecontent()
.This method will be removed in future release.- Returns:
- the content
-
isContentTypeHtml
Deprecated.As it is record class no need to use getter method instead usecontentTypeHtml()
. This method will be removed in future release.- Returns:
- true or false
-
content
- Returns:
- the content
- Since:
- 3.0.15
-
contentTypeHtml
public boolean contentTypeHtml()Denotes whether the content type to be treated as HTML when embedding in the consumer tags.- Returns:
- true or false
- Since:
- 3.0.15
-
equals
-
hashCode
public int hashCode()
-
content()
.This method will be removed in future release.