com.vaadin.client.ui.grid.renderers
Class HtmlRenderer

java.lang.Object
  extended by com.vaadin.client.ui.grid.renderers.HtmlRenderer
All Implemented Interfaces:
Renderer<java.lang.String>

public class HtmlRenderer
extends java.lang.Object
implements Renderer<java.lang.String>

Renders a string as HTML into a cell.

The html string is rendered as is without any escaping. It is up to the developer to ensure that the html string honors the SafeHtml contract. For more information see SafeHtmlUtils.fromSafeConstant(String).

Since:
Author:
Vaadin Ltd
See Also:
SafeHtmlUtils.fromSafeConstant(String)

Constructor Summary
HtmlRenderer()
           
 
Method Summary
 void render(FlyweightCell cell, java.lang.String htmlString)
          Called whenever the Grid updates a cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlRenderer

public HtmlRenderer()
Method Detail

render

public void render(FlyweightCell cell,
                   java.lang.String htmlString)
Description copied from interface: Renderer
Called whenever the Grid updates a cell

Specified by:
render in interface Renderer<java.lang.String>
Parameters:
cell - The cell. Note that the cell is a flyweight and should not be stored outside of the method as it will change.
htmlString - The column data object


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.