com.github.dandelion.datatables.core.generator
Class WebResourceGenerator

java.lang.Object
  extended by com.github.dandelion.datatables.core.generator.WebResourceGenerator

public class WebResourceGenerator
extends Object

Class in charge of web resources generation.

The generated JSON (DataTables configuration) is pretty printed using a custom writer written by Elad Tabak.

Author:
Thibault Duchateau

Constructor Summary
WebResourceGenerator(HtmlTable table)
           
 
Method Summary
 JsResource generateWebResources()
           Main method which generated the web resources (js and css files).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebResourceGenerator

public WebResourceGenerator(HtmlTable table)
Method Detail

generateWebResources

public JsResource generateWebResources()

Main method which generated the web resources (js and css files).

Parameters:
pageContext - Context of the servlet.
table - Table from which the configuration is extracted.
Returns:
A string corresponding to the Javascript code to return to the JSP.


Copyright © 2013–2014 Dandelion Project. All rights reserved.