public void renderChanges(Widget widget) throws IOException {
   ControlDecorator decorator = (ControlDecorator) widget;
   WidgetLCAUtil.renderBounds(decorator, decorator.getBounds());
   renderProperty(decorator, PROP_TEXT, decorator.getText(), "");
   renderProperty(decorator, PROP_IMAGE, decorator.getImage(), null);
   renderProperty(decorator, PROP_VISIBLE, decorator.isVisible(), false);
   renderProperty(decorator, PROP_SHOW_HOVER, decorator.getShowHover(), true);
   renderListener(
       decorator, PROP_SELECTION_LISTENER, SelectionEvent.hasListener(decorator), false);
 }
Exemplo n.º 2
0
 public void renderChanges(Widget widget) throws IOException {
   ToolTip toolTip = (ToolTip) widget;
   WidgetLCAUtil.renderCustomVariant(widget);
   WidgetLCAUtil.renderRoundedBorder(widget);
   WidgetLCAUtil.renderBackgroundGradient(widget);
   renderProperty(toolTip, PROP_AUTO_HIDE, toolTip.getAutoHide(), false);
   renderProperty(toolTip, PROP_TEXT, toolTip.getText(), "");
   renderProperty(toolTip, PROP_MESSAGE, toolTip.getMessage(), "");
   renderProperty(toolTip, PROP_LOCATION, getLocation(toolTip), DEFAULT_LOCATION);
   renderProperty(toolTip, PROP_VISIBLE, toolTip.isVisible(), false);
   renderListener(toolTip, PROP_SELECTION_LISTENER, SelectionEvent.hasListener(toolTip), false);
 }