Browse Source

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

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

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

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

Loading…
Cancel
Save