diff --git a/designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java b/designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java index 60f45450c7..f9224b3c67 100644 --- a/designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java +++ b/designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java @@ -129,6 +129,7 @@ public class CellWidgetPropertyPane extends BasicPane { } } }); + DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); } diff --git a/designer/src/com/fr/design/widget/WidgetPane.java b/designer/src/com/fr/design/widget/WidgetPane.java index fdfba03a23..10ebf66a57 100644 --- a/designer/src/com/fr/design/widget/WidgetPane.java +++ b/designer/src/com/fr/design/widget/WidgetPane.java @@ -12,7 +12,6 @@ import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.TableLayout; import com.fr.design.layout.TableLayoutHelper; import com.fr.design.mainframe.CellWidgetPropertyPane; -import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.ElementCasePane; import com.fr.design.widget.btn.ButtonConstants; import com.fr.form.ui.Button; @@ -94,7 +93,6 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener @Override public void attributeChange() { CellWidgetPropertyPane.getInstance().update(); - DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); } }; diff --git a/designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java b/designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java index fe5c305ac9..7fdb11e667 100644 --- a/designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java +++ b/designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java @@ -206,20 +206,6 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { widgetBoundPane.update(); } fireValueChanged(); - - if (xCreator.acceptType(XWScaleLayout.class)) { - XCreator xCreator1 = xCreator.getEditingChildCreator(); - xCreator1.resetData(widget); - xCreator.removeAll(); - xCreator.add(xCreator1); - }else if(xCreator.acceptType(XWTitleLayout.class)){ - XCreator xCreator1 = ((XWTitleLayout) xCreator).getXCreator(0); - xCreator1.resetData(widget); - xCreator.removeAll(); - xCreator.add(xCreator1); - } else { - xCreator.resetData(widget); - } } diff --git a/designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java index 2a99a99651..966244c37a 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java @@ -185,7 +185,7 @@ public class DateEditorDefinePane extends DirectWriteEditorDefinePane { @Override public IframeEditor updateBean() { - IframeEditor ob = new IframeEditor(); + IframeEditor ob = (IframeEditor)creator.toData(); ob.setSrc(srcTextField.getText()); List parameterList = parameterViewPane.update(); ob.setParameters(parameterList.toArray(new ParameterProvider[parameterList.size()])); diff --git a/designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java b/designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java index 40797f9f4f..714f268827 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java @@ -85,7 +85,7 @@ public class MultiFileEditorPane extends FieldEditorDefinePane @Override protected MultiFileEditor updateSubFieldEditorBean() { - MultiFileEditor ob = new MultiFileEditor(); + MultiFileEditor ob = (MultiFileEditor)creator.toData(); ob.setAccept((String) acceptType.getSelectedItem()); ob.setSingleFile(singleFileCheckBox.isSelected()); ob.setMaxSize(fileSizeField.getValue()); diff --git a/designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java index 00f204f1cb..9387df85c4 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java @@ -278,7 +278,7 @@ public class NumberEditorDefinePane extends FieldEditorDefinePane @Override protected NumberEditor updateSubFieldEditorBean() { - NumberEditor ob = new NumberEditor(); + NumberEditor ob = (NumberEditor)creator.toData(); formWidgetValuePane.update(ob); ob.setAllowDecimals(allowDecimalsCheckBox.isSelected()); if (allowDecimalsCheckBox.isSelected()) { diff --git a/designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java index 8ca631cff3..afb618bd6c 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java @@ -41,6 +41,6 @@ public class RadioDefinePane extends AbstractDataModify { @Override public Radio updateBean() { - return new Radio(); + return (Radio)creator.toData(); } } \ No newline at end of file diff --git a/designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java index 5378c00ed8..cc5abe66e1 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java @@ -108,7 +108,7 @@ public class TextFieldEditorDefinePane extends FieldEditorDefinePane @Override protected TextEditor updateSubFieldEditorBean() { - TextEditor ob = newTextEditorInstance(); + TextEditor ob = (TextEditor)creator.toData(); ob.setRegex(this.regPane.update()); ob.setWaterMark(waterMarkDictPane.getText()); formWidgetValuePane.update(ob); diff --git a/designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java index 94141e4bb1..05b0e2636a 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java @@ -99,7 +99,7 @@ public class FRAbsoluteLayoutDefinePane extends AbstractDataModify