T
- The bean property type.public abstract class HtmlRender<T> extends Object
Associated with bean properties using the @Html(render)
annotation.
Using this class, you can alter the CSS style and HTML content of the bean property.
Constructor and Description |
---|
HtmlRender() |
Modifier and Type | Method and Description |
---|---|
Object |
getContent(SerializerSession session,
T value)
Returns the delegate value for the specified bean property value.
|
String |
getStyle(SerializerSession session,
T value)
Returns the CSS style of the element containing the bean property value.
|
public HtmlRender()
public String getStyle(SerializerSession session, T value)
session
- The current serializer session.
Can be used to retrieve properties and session-level information.value
- The bean property value.public Object getContent(SerializerSession session, T value)
The default implementation simply returns the same value. A typical use is to return an HTML element using one of the HTML5 DOM beans.
session
- The current serializer session.
Can be used to retrieve properties and session-level information.value
- The bean property value.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.