From 280a1ec62bc2f036af09ac4a982ba9cf381c2de4 Mon Sep 17 00:00:00 2001 From: zack Date: Thu, 12 May 2016 13:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer/src/com/fr/design/widget/WidgetPane.java | 2 +- designer_base/src/com/fr/design/fun/WidgetDesignHandler.java | 2 +- .../com/fr/design/fun/impl/AbstractWidgetDesignHandler.java | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/designer/src/com/fr/design/widget/WidgetPane.java b/designer/src/com/fr/design/widget/WidgetPane.java index f2e5ce30a..57ff668c8 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) { - selectedItem = handler.dealWithWidget(oldWidget, selectedItem); + handler.dealWithWidget(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 0f4b52bf9..20a0dec0e 100644 --- a/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java +++ b/designer_base/src/com/fr/design/fun/WidgetDesignHandler.java @@ -18,5 +18,5 @@ public interface WidgetDesignHandler extends Level { * @param newWidget 新控件 * @return 处理后的控件 */ - Widget dealWithWidget(Widget oldWidget, Widget newWidget); + void dealWithWidget(Widget oldWidget, Widget newWidget); } diff --git a/designer_base/src/com/fr/design/fun/impl/AbstractWidgetDesignHandler.java b/designer_base/src/com/fr/design/fun/impl/AbstractWidgetDesignHandler.java index 1bf331c69..63659de21 100644 --- a/designer_base/src/com/fr/design/fun/impl/AbstractWidgetDesignHandler.java +++ b/designer_base/src/com/fr/design/fun/impl/AbstractWidgetDesignHandler.java @@ -1,7 +1,6 @@ package com.fr.design.fun.impl; import com.fr.design.fun.WidgetDesignHandler; -import com.fr.form.ui.Widget; /** * Coder: zack @@ -9,8 +8,4 @@ import com.fr.form.ui.Widget; * Time: 10:41 */ public abstract class AbstractWidgetDesignHandler implements WidgetDesignHandler { - @Override - public Widget dealWithWidget(Widget oldWidget, Widget newWidget) { - return newWidget; - } }