コード例 #1
0
ファイル: Tooltip.java プロジェクト: poqudrof/Skatolo
 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;
 }
コード例 #2
0
ファイル: Tooltip.java プロジェクト: poqudrof/Skatolo
 /**
  * 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;
 }