Examples of LabelGenerator


Examples of org.enhydra.jawe.base.label.LabelGenerator

      return generateStandardTooltip(el);
   }

   public String getTooltip(Activity el) {
      // CUSTOM: hide unused fields
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
//      putKeyValue(toDisplay, el.get("Description"));
//      putKeyValue(toDisplay, el.get("Performer"));
//      putKeyValue(toDisplay, el.getStartMode());
//      putKeyValue(toDisplay, el.getFinishMode());
//      putKeyValue(toDisplay, el.get("Priority"));
      putKeyValue(toDisplay, el.get("Limit"));
      if (el.getTransitionRestrictions().size() > 0) {
         TransitionRestriction tr = (TransitionRestriction) el.getTransitionRestrictions().get(0);
         putKeyValue(toDisplay, tr.getJoin());
         putKeyValue(toDisplay, tr.getSplit());
      } else {
         toDisplay.put(lg.getLabel(new Join(null)), "");
         toDisplay.put(lg.getLabel(new Split(null)), "");
      }
      fillTypePartOfTooltip(el, toDisplay);
      return makeTooltip(toDisplay);
      // END CUSTOM
   }
View Full Code Here

Examples of org.enhydra.jawe.base.label.LabelGenerator

   public String getTooltip(Tools el) {
      return generateStandardTooltip(el);
   }

   public String getTooltip(Transition el) {
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
      putKeyValue(toDisplay, el.get("Description"));
      putKeyValue(toDisplay, el.get("From"));
      putKeyValue(toDisplay, el.get("To"));
      putKeyValue(toDisplay, el.getCondition().getTypeAttribute());
      toDisplay.put(lg.getLabel(el.getCondition()), el.getCondition().toValue());
      return makeTooltip(toDisplay);
   }
View Full Code Here

Examples of org.enhydra.jawe.base.label.LabelGenerator

      }
      return es;
   }

   protected static void putKeyValue(Map toPut, XMLElement el) {
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      DisplayNameGenerator dng = JaWEManager.getInstance().getDisplayNameGenerator();
      toPut.put(lg.getLabel(el), dng.getDisplayName(el));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.