congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
MenuItemDescription.setDataMap
Code IndexAdd Tabnine to your IDE (free)

How to use
setDataMap
method
in
org.jbpm.form.builder.services.model.menu.MenuItemDescription

Best Java code snippets using org.jbpm.form.builder.services.model.menu.MenuItemDescription.setDataMap (Showing top 2 results out of 315)

origin: org.jbpm/form-services

@Override
@SuppressWarnings("unchecked")
public Map<String, List<MenuItemDescription>> decodeMenuItemsMap(String json)
    throws FormEncodingException {
  JsonObject jsonObj = new JsonParser().parse(json).getAsJsonObject();
  Map<String, Object> dataMap = asMap(jsonObj);
  Map<String, List<MenuItemDescription>> retval = null;
  if (dataMap != null) {
    retval = new HashMap<String, List<MenuItemDescription>>();
    for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
      List<MenuItemDescription> itemsList = new ArrayList<MenuItemDescription>();
      String key = entry.getKey();
      Object obj = entry.getValue();
      if (obj != null) {
        List<Object> itemsMapList = (List<Object>) obj;
        for (Object itemObj : itemsMapList) {
          Map<String, Object> itemDescMap = (Map<String, Object>) itemObj;
          MenuItemDescription desc = new MenuItemDescription();
          desc.setDataMap(itemDescMap);
          itemsList.add(desc);
        }
      }
      retval.put(key, itemsList);
    }
  }
  return retval;
}
origin: org.jbpm/jbpm-form-services

@Override
@SuppressWarnings("unchecked")
public Map<String, List<MenuItemDescription>> decodeMenuItemsMap(String json)
    throws FormEncodingException {
  JsonObject jsonObj = new JsonParser().parse(json).getAsJsonObject();
  Map<String, Object> dataMap = asMap(jsonObj);
  Map<String, List<MenuItemDescription>> retval = null;
  if (dataMap != null) {
    retval = new HashMap<String, List<MenuItemDescription>>();
    for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
      List<MenuItemDescription> itemsList = new ArrayList<MenuItemDescription>();
      String key = entry.getKey();
      Object obj = entry.getValue();
      if (obj != null) {
        List<Object> itemsMapList = (List<Object>) obj;
        for (Object itemObj : itemsMapList) {
          Map<String, Object> itemDescMap = (Map<String, Object>) itemObj;
          MenuItemDescription desc = new MenuItemDescription();
          desc.setDataMap(itemDescMap);
          itemsList.add(desc);
        }
      }
      retval.put(key, itemsList);
    }
  }
  return retval;
}
org.jbpm.form.builder.services.model.menuMenuItemDescriptionsetDataMap

Popular methods of MenuItemDescription

  • <init>
  • getDataMap
  • getName
  • setAllowedEvents
  • setEffects
  • setIconUrl
  • setItemRepresentationMap
  • setName

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JLabel (javax.swing)
  • JTable (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now