com.google.visualization.datasource.render
Class HtmlRenderer

java.lang.Object
  extended by com.google.visualization.datasource.render.HtmlRenderer

public class HtmlRenderer
extends Object

Takes a data table and returns an html string.

Author:
Nimrod T.

Method Summary
static CharSequence renderDataTable(DataTable dataTable, com.ibm.icu.util.ULocale locale)
          Generates an HTML string representation of a data table.
static CharSequence renderHtmlError(ResponseStatus responseStatus)
          Renders a simple html for the given responseStatus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderDataTable

public static CharSequence renderDataTable(DataTable dataTable,
                                           com.ibm.icu.util.ULocale locale)
Generates an HTML string representation of a data table.

Parameters:
dataTable - The data table to render.
locale - The locale. If null, uses the default from LocaleUtil#getDefaultLocale.
Returns:
The char sequence with the html string.

renderHtmlError

public static CharSequence renderHtmlError(ResponseStatus responseStatus)
Renders a simple html for the given responseStatus.

Parameters:
responseStatus - The response message.
Returns:
A simple html for the given responseStatus.


Copyright © 2012 Google. All Rights Reserved.