src/main/java/de/ipb_halle/molecularfaces/util/ResourceLoader.java
/**
	 * Generates a JavaScript code fragment for loading resources that have been
	 * enqueued for loading via {@code molecularfaces.ResourcesLoader}.
	 * 
	 * @param loaderJSVar JavaScript variable name of the
	 *                    {@code molecularfaces.ResourcesLoader} instance
	 * @return JavaScript code
	 */
Generates a JavaScript code fragment for loading resources that have been
enqueued for loading via  molecularfaces.ResourcesLoader.


Generates a JavaScript code fragment for loading resources that have been enqueued for loading via molecularfaces . ResourcesLoader .
public StringBuilder encodeLoadExtResources(String loaderJSVar) {
		StringBuilder sb = new StringBuilder(256);
		Formatter fmt = new Formatter(sb);
		for (String script : scriptsExtToLoadInHead) {
			fmt.format(".addScriptToHead(\"%s\")", script);
		}
		for (String script : scriptsExtToLoadInBodyAtTop) {
			fmt.format(".addScriptToBodyAtTop(\"%s\")", script);
		}
		for (String href : cssExtToLoad) {
			fmt.format(".addCssToHead(\"%s\")", href);
		}
		fmt.close();
		if (sb.length() > 0) {
			sb.insert(0, loaderJSVar);
			sb.append(";");
		}
		return sb;
	}
public StringBuilder encodeLoadExtResources ( String loaderJSVar ) { StringBuilder sb = new StringBuilder ( 256 ) ; Formatter fmt = new Formatter ( sb ) ; for ( String script : scriptsExtToLoadInHead ) { fmt . format ( ".addScriptToHead(\"%s\")" , script ) ; } for ( String script : scriptsExtToLoadInBodyAtTop ) { fmt . format ( ".addScriptToBodyAtTop(\"%s\")" , script ) ; } for ( String href : cssExtToLoad ) { fmt . format ( ".addCssToHead(\"%s\")" , href ) ; } fmt . close ( ) ; if ( sb . length ( ) > 0 ) { sb . insert ( 0 , loaderJSVar ) ; sb . append ( ";" ) ; } return sb ; }
Generates a JavaScript code fragment for loading resources that have been
 enqueued for loading via {@code molecularfaces.ResourcesLoader}.
Generates a JavaScript code fragment for loading resources that have been enqueued for loading via { @code molecularfaces . ResourcesLoader } .