Browse Source

修改

master
zack 9 years ago
parent
commit
280a1ec62b
  1. 2
      designer/src/com/fr/design/widget/WidgetPane.java
  2. 2
      designer_base/src/com/fr/design/fun/WidgetDesignHandler.java
  3. 5
      designer_base/src/com/fr/design/fun/impl/AbstractWidgetDesignHandler.java

2
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);

2
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);
}

5
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;
}
}

Loading…
Cancel
Save