Browse Source

REPORT-136606【控件】按钮复制事件名称到另一个按钮后发生控件属性名称覆盖的情况

release/11.0
lidongy 2 months ago
parent
commit
e3fc265231
  1. 17
      designer-realize/src/main/java/com/fr/design/mainframe/CellWidgetPropertyPane.java

17
designer-realize/src/main/java/com/fr/design/mainframe/CellWidgetPropertyPane.java

@ -158,19 +158,16 @@ public class CellWidgetPropertyPane extends BasicPane {
}
setCellWidget(cellWidget, cellElement);
} else {
ReportActionUtils.actionIterateWithCellSelection(finalCS, tplEC, new ReportActionUtils.IterAction() {
public void dealWith(CellElement editCellElement) {
// p:最后把这个cellEditorDef设置到CellGUIAttr.
TemplateCellElement templateCellElement = (TemplateCellElement) editCellElement;
try {
setCellWidget((Widget) cellWidget.clone(), templateCellElement);
} catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("InternalError: " + e.getMessage());
}
ReportActionUtils.actionIterateWithCellSelection(finalCS, tplEC, editCellElement -> {
// p:最后把这个cellEditorDef设置到CellGUIAttr.
TemplateCellElement templateCellElement = (TemplateCellElement) editCellElement;
try {
setCellWidget((Widget) cellWidget.clone(), templateCellElement);
} catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("InternalError: " + e.getMessage());
}
});
}
if (DesignerContext.getDesignerFrame().getSelectedJTemplate() != null) {
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified();
}

Loading…
Cancel
Save