|
|
@ -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) { |
|
|
|