com.github.dandelion.datatables.core.generator
Class WebResourceGenerator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebResourceGenerator
public WebResourceGenerator(HtmlTable table)
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.