コード例 #1
0
 public void preserveValues(Widget widget) {
   ControlDecorator decorator = (ControlDecorator) widget;
   WidgetLCAUtil.preserveBounds(decorator, decorator.getBounds());
   preserveProperty(decorator, PROP_TEXT, decorator.getText());
   preserveProperty(decorator, PROP_IMAGE, decorator.getImage());
   preserveProperty(decorator, PROP_VISIBLE, decorator.isVisible());
   preserveProperty(decorator, PROP_SHOW_HOVER, decorator.getShowHover());
   preserveListener(decorator, PROP_SELECTION_LISTENER, SelectionEvent.hasListener(decorator));
 }
コード例 #2
0
 public void preserveValues(Widget widget) {
   ToolTip toolTip = (ToolTip) widget;
   WidgetLCAUtil.preserveCustomVariant(widget);
   WidgetLCAUtil.preserveRoundedBorder(widget);
   WidgetLCAUtil.preserveBackgroundGradient(widget);
   preserveProperty(toolTip, PROP_AUTO_HIDE, toolTip.getAutoHide());
   preserveProperty(toolTip, PROP_TEXT, toolTip.getText());
   preserveProperty(toolTip, PROP_MESSAGE, toolTip.getMessage());
   preserveProperty(toolTip, PROP_LOCATION, getLocation(toolTip));
   preserveProperty(toolTip, PROP_VISIBLE, toolTip.isVisible());
   preserveListener(toolTip, PROP_SELECTION_LISTENER, SelectionEvent.hasListener(toolTip));
 }