|
|
@ -251,12 +251,13 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener |
|
|
|
//为了保持预定义控件的配置界面不变,返回类型必须为NameWidget
|
|
|
|
//为了保持预定义控件的配置界面不变,返回类型必须为NameWidget
|
|
|
|
private NameWidget getPredefinedWidget(String name) { |
|
|
|
private NameWidget getPredefinedWidget(String name) { |
|
|
|
NameWidget nameWidget = new NameWidget(name); |
|
|
|
NameWidget nameWidget = new NameWidget(name); |
|
|
|
WidgetInfoConfig mgr = WidgetInfoConfig.getInstance(); |
|
|
|
WidgetInfoConfig manager = WidgetInfoConfig.getInstance(); |
|
|
|
Widget widget = mgr.getWidgetConfig(name).toWidget(); |
|
|
|
if (manager.getWidgetConfig(name) != null) { |
|
|
|
nameWidget.setEnabled(widget.isEnabled()); |
|
|
|
Widget widget = manager.getWidgetConfig(name).toWidget(); |
|
|
|
nameWidget.setVisible(widget.isVisible()); |
|
|
|
nameWidget.setWidgetName(widget.getWidgetName()); |
|
|
|
nameWidget.setWidgetName(widget.getWidgetName()); |
|
|
|
nameWidget.setEnabled(widget.isEnabled()); |
|
|
|
nameWidget.setWidgetPrivilegeControl(widget.getWidgetPrivilegeControl()); |
|
|
|
nameWidget.setVisible(widget.isVisible()); |
|
|
|
|
|
|
|
} |
|
|
|
return nameWidget; |
|
|
|
return nameWidget; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|