Package org.apache.juneau.html
Class HtmlRender<T>
java.lang.Object
org.apache.juneau.html.HtmlRender<T>
- Type Parameters:
- T- The bean property type.
Allows custom rendering of bean property values when serialized as HTML.
 
 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.
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetContent(SerializerSession session, T value) Returns the delegate value for the specified bean property value.getStyle(SerializerSession session, T value) Returns the CSS style of the element containing the bean property value.
- 
Constructor Details- 
HtmlRenderpublic HtmlRender()
 
- 
- 
Method Details- 
getStyleReturns the CSS style of the element containing the bean property value.- Parameters:
- session- The current serializer session. Can be used to retrieve properties and session-level information.
- value- The bean property value.
- Returns:
- The CSS style string, or null if no style should be added.
 
- 
getContentReturns the delegate value for the specified bean property 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. - Parameters:
- session- The current serializer session. Can be used to retrieve properties and session-level information.
- value- The bean property value.
- Returns:
- The new bean property value.
 
 
-