diff --git a/designer/src/com/fr/design/widget/WidgetPane.java b/designer/src/com/fr/design/widget/WidgetPane.java index 57ff668c8a..d14f2da946 100644 --- a/designer/src/com/fr/design/widget/WidgetPane.java +++ b/designer/src/com/fr/design/widget/WidgetPane.java @@ -71,7 +71,7 @@ public class WidgetPane extends BasicPane implements ItemListener { Widget selectedItem = editorTypeComboBox.getCellWidget(); WidgetDesignHandler handler = ExtraDesignClassManager.getInstance().getWidgetDesignHandler(); if (handler != null) { - handler.dealWithWidget(oldWidget, selectedItem); + handler.transferWidgetProperties(oldWidget, selectedItem); } if (e.getItem() instanceof Item && ((Item) e.getItem()).getValue() instanceof WidgetConfig) { populate(selectedItem); diff --git a/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java b/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java index 20a0dec0ea..db8e568ed9 100644 --- a/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java +++ b/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java @@ -11,12 +11,12 @@ import com.fr.stable.fun.Level; public interface WidgetDesignHandler extends Level { String XML_TAG = "WidgetDesignHandler"; int CURRENT_LEVEL = 1; + /** - * 控件设置的时候对原控件和新控件的一些特殊处理(比如属性的传递,默认属性的设置等) + * 传递控件共有属性 * * @param oldWidget 老控件 * @param newWidget 新控件 - * @return 处理后的控件 */ - void dealWithWidget(Widget oldWidget, Widget newWidget); + void transferWidgetProperties(Widget oldWidget, Widget newWidget); }