|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.viewGenerator.html.JavascriptBundleProducer
public class JavascriptBundleProducer
This tool permits the creates dynamically javascript bundles that javascript plugins can used
easily.
The generated javascript bundle will be an instance of SilverpeasPluginBundle defined into
silverpeas.js
Method Summary | |
---|---|
JavascriptBundleProducer |
add(ResourceLocator bundle,
String... keys)
Adds given keys from the given bundle. |
static JavascriptBundleProducer |
bundleVariableName(String jsBundleVariableName)
Initializes the bundle producer by specifying the name of the javascript variable that represents the bundle. |
static String |
fromCoreTemplate(String pathSuffix,
String templateName,
String language)
Gets the javascript bundle content from the string template repository and according to given parameters. |
String |
produce()
The name of the javascript variable that represents the instance of the bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String fromCoreTemplate(String pathSuffix, String templateName, String language)
pathSuffix
- the path suffix behind the root path "core" of string template repository.templateName
- the template name (so the filename without the language ("_fr" for
example) and without extension.language
- the requested language content.
public static JavascriptBundleProducer bundleVariableName(String jsBundleVariableName)
jsBundleVariableName
- the javascript variable name of the bundle.
public JavascriptBundleProducer add(ResourceLocator bundle, String... keys)
bundle
- the bundle from which the messages must be extracted.keys
- the requested message keys.
public String produce()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |