All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.javascript.HfgPopupMenu Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
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;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy