com.hfg.javascript.HfgPopupMenu Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.javascript;
import java.util.HashMap;
import java.util.Map;
public class HfgPopupMenu
{
private static String sCachedJs;
//--------------------------------------------------------------------------
/**
Generates the generic javascript methods for creating a popup menu.
*/
public static synchronized String generateJavascript()
{
if (null == sCachedJs)
{
Map tokenSubstitutionMap = new HashMap<>();
sCachedJs = JsUtil.getJSResourceAsString("hfgPopupMenu.js", tokenSubstitutionMap);
}
return sCachedJs;
}
}