com.github.dandelion.datatables.core.generator.javascript
Interface JavascriptGenerator

All Superinterfaces:
com.github.dandelion.core.asset.locator.impl.DelegatedContent
All Known Implementing Classes:
StandardJavascriptGenerator

public interface JavascriptGenerator
extends com.github.dandelion.core.asset.locator.impl.DelegatedContent

Interface for all Javascript generators.

The default implementation is the StandardJavascriptGenerator class but it can be replaced by another class that implements this interface thanks to the DatatablesConfigurator.

As it extends the DelegatedContent interface, the implementation must also implement the DelegatedContent.getContent(javax.servlet.http.HttpServletRequest) method, which should return the generated Javascript.

Since:
0.10.0
Author:
Thibault Duchateau

Field Summary
static String INDENTATION
           
static String NEWLINE
           
 
Method Summary
 void addResource(JsResource jsResource)
          Transfer the data from the JsResource to the different String builders (buffer).
 
Methods inherited from interface com.github.dandelion.core.asset.locator.impl.DelegatedContent
getContent
 

Field Detail

INDENTATION

static final String INDENTATION
See Also:
Constant Field Values

NEWLINE

static final String NEWLINE
See Also:
Constant Field Values
Method Detail

addResource

void addResource(JsResource jsResource)
Transfer the data from the JsResource to the different String builders (buffer).

Parameters:
jsResource - The web resource to use to generate Javascript content.


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