Browse Source

REPORT-66884

bugfix/11.0
方磊 3 years ago
parent
commit
ea6418f46c
  1. 18
      designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

18
designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

@ -1991,17 +1991,21 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
} }
public void instantiateCreator(XCreator creator) { public void instantiateCreator(XCreator creator) {
ModelUtil.renameWidgetName(this.getTarget(), creator); if (creator != null) {
creator.addNotify(); ModelUtil.renameWidgetName(this.getTarget(), creator);
creator.addNotify();
ComponentAdapter adapter = new CompositeComponentAdapter(this, creator); ComponentAdapter adapter = new CompositeComponentAdapter(this, creator);
adapter.initialize(); adapter.initialize();
creator.putClientProperty(AdapterBus.CLIENT_PROPERTIES, adapter); creator.putClientProperty(AdapterBus.CLIENT_PROPERTIES, adapter);
}
} }
public void backUpCreator(XCreator creator) { public void backUpCreator(XCreator creator) {
creator.backupCurrentSize(); if (creator != null) {
creator.backupParent(); creator.backupCurrentSize();
creator.backupParent();
}
} }
public void addWidgetToForm(XCreator creator, int x, int y) { public void addWidgetToForm(XCreator creator, int x, int y) {

Loading…
Cancel
Save