|
|
|
@ -31,6 +31,7 @@ import com.fr.design.widget.ui.designer.component.WidgetCardTagBoundPane;
|
|
|
|
|
import com.fr.form.ui.ChartEditor; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.form.ui.container.WScaleLayout; |
|
|
|
|
import com.fr.form.ui.container.WSortLayout; |
|
|
|
|
import com.fr.form.ui.container.WTitleLayout; |
|
|
|
|
import com.fr.form.ui.widget.CRBoundsWidget; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
@ -241,7 +242,12 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane {
|
|
|
|
|
showNameInvalidDialog(Toolkit.i18nText("Fine-Design_Form_Chart_Widget_Rename_Failure")); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
String oldName = widget.getWidgetName(); |
|
|
|
|
widgetPropertyPane.update(widget); |
|
|
|
|
Widget innerWidget = WSortLayout.getInnerWidget(widget); |
|
|
|
|
if (!StringUtils.equals(oldName, innerWidget.getWidgetName())) { |
|
|
|
|
innerWidget.setMobileOldWidgetName(oldName); |
|
|
|
|
} |
|
|
|
|
// 上面一行更新了组件 这里必须重新调用getWidgetName
|
|
|
|
|
xCreator.resetCreatorName(widget.getWidgetName()); |
|
|
|
|
xCreator.resetVisible(widget.isVisible()); |
|
|
|
|