Exemplo n.º 1
0
 public Tooltip register(String theControllerName, String theText) {
   Controller<?> c = skatolo.getController(theControllerName);
   if (c == null) {
     return this;
   }
   map.put(c, theText);
   c.registerProperty("setTooltipEnabled", "isTooltipEnabled");
   return this;
 }
Exemplo n.º 2
0
 /**
  * registers a controller with the Tooltip, when activating the tooltip for a particular
  * controller, the registered text (second parameter) will be displayed.
  *
  * @param theController
  * @param theText
  * @return Tooltip
  */
 public Tooltip register(Controller<?> theController, String theText) {
   map.put(theController, theText);
   theController.registerProperty("setTooltipEnabled", "isTooltipEnabled");
   return this;
 }