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; }
/** * 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; }