Browse Source

REPORT-4233 [9.0一轮回归]日期控件设置不能为空,没有提示

master
kerry 7 years ago
parent
commit
ce2736ce7e
  1. 1
      designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java
  2. 2
      designer/src/com/fr/design/widget/WidgetPane.java
  3. 14
      designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java
  4. 2
      designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java
  5. 2
      designer_form/src/com/fr/design/widget/ui/designer/IframeEditorDefinePane.java
  6. 2
      designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java
  7. 2
      designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java
  8. 2
      designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java
  9. 2
      designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java
  10. 2
      designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java

1
designer/src/com/fr/design/mainframe/CellWidgetPropertyPane.java

@ -129,6 +129,7 @@ public class CellWidgetPropertyPane extends BasicPane {
} }
} }
}); });
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified();
} }

2
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.TableLayout;
import com.fr.design.layout.TableLayoutHelper; import com.fr.design.layout.TableLayoutHelper;
import com.fr.design.mainframe.CellWidgetPropertyPane; import com.fr.design.mainframe.CellWidgetPropertyPane;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.ElementCasePane; import com.fr.design.mainframe.ElementCasePane;
import com.fr.design.widget.btn.ButtonConstants; import com.fr.design.widget.btn.ButtonConstants;
import com.fr.form.ui.Button; import com.fr.form.ui.Button;
@ -94,7 +93,6 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener
@Override @Override
public void attributeChange() { public void attributeChange() {
CellWidgetPropertyPane.getInstance().update(); CellWidgetPropertyPane.getInstance().update();
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified();
} }
}; };

14
designer_form/src/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

@ -206,20 +206,6 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
widgetBoundPane.update(); widgetBoundPane.update();
} }
fireValueChanged(); 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);
}
} }

2
designer_form/src/com/fr/design/widget/ui/designer/DateEditorDefinePane.java

@ -185,7 +185,7 @@ public class DateEditorDefinePane extends DirectWriteEditorDefinePane<DateEditor
@Override @Override
protected DateEditor updateSubDirectWriteEditorBean() { protected DateEditor updateSubDirectWriteEditorBean() {
DateEditor ob = new DateEditor(); DateEditor ob = (DateEditor)creator.toData();
waterMarkDictPane.update(ob); waterMarkDictPane.update(ob);
ob.setFormatText(this.getSimpleDateFormat().toPattern()); ob.setFormatText(this.getSimpleDateFormat().toPattern());
ob.setReturnDate(returnTypeComboBox.getSelectedIndex() == 0); ob.setReturnDate(returnTypeComboBox.getSelectedIndex() == 0);

2
designer_form/src/com/fr/design/widget/ui/designer/IframeEditorDefinePane.java

@ -73,7 +73,7 @@ public class IframeEditorDefinePane extends AbstractDataModify<IframeEditor> {
@Override @Override
public IframeEditor updateBean() { public IframeEditor updateBean() {
IframeEditor ob = new IframeEditor(); IframeEditor ob = (IframeEditor)creator.toData();
ob.setSrc(srcTextField.getText()); ob.setSrc(srcTextField.getText());
List<ParameterProvider> parameterList = parameterViewPane.update(); List<ParameterProvider> parameterList = parameterViewPane.update();
ob.setParameters(parameterList.toArray(new ParameterProvider[parameterList.size()])); ob.setParameters(parameterList.toArray(new ParameterProvider[parameterList.size()]));

2
designer_form/src/com/fr/design/widget/ui/designer/MultiFileEditorPane.java

@ -85,7 +85,7 @@ public class MultiFileEditorPane extends FieldEditorDefinePane<MultiFileEditor>
@Override @Override
protected MultiFileEditor updateSubFieldEditorBean() { protected MultiFileEditor updateSubFieldEditorBean() {
MultiFileEditor ob = new MultiFileEditor(); MultiFileEditor ob = (MultiFileEditor)creator.toData();
ob.setAccept((String) acceptType.getSelectedItem()); ob.setAccept((String) acceptType.getSelectedItem());
ob.setSingleFile(singleFileCheckBox.isSelected()); ob.setSingleFile(singleFileCheckBox.isSelected());
ob.setMaxSize(fileSizeField.getValue()); ob.setMaxSize(fileSizeField.getValue());

2
designer_form/src/com/fr/design/widget/ui/designer/NumberEditorDefinePane.java

@ -278,7 +278,7 @@ public class NumberEditorDefinePane extends FieldEditorDefinePane<NumberEditor>
@Override @Override
protected NumberEditor updateSubFieldEditorBean() { protected NumberEditor updateSubFieldEditorBean() {
NumberEditor ob = new NumberEditor(); NumberEditor ob = (NumberEditor)creator.toData();
formWidgetValuePane.update(ob); formWidgetValuePane.update(ob);
ob.setAllowDecimals(allowDecimalsCheckBox.isSelected()); ob.setAllowDecimals(allowDecimalsCheckBox.isSelected());
if (allowDecimalsCheckBox.isSelected()) { if (allowDecimalsCheckBox.isSelected()) {

2
designer_form/src/com/fr/design/widget/ui/designer/RadioDefinePane.java

@ -41,6 +41,6 @@ public class RadioDefinePane extends AbstractDataModify<Radio> {
@Override @Override
public Radio updateBean() { public Radio updateBean() {
return new Radio(); return (Radio)creator.toData();
} }
} }

2
designer_form/src/com/fr/design/widget/ui/designer/TextFieldEditorDefinePane.java

@ -108,7 +108,7 @@ public class TextFieldEditorDefinePane extends FieldEditorDefinePane<TextEditor>
@Override @Override
protected TextEditor updateSubFieldEditorBean() { protected TextEditor updateSubFieldEditorBean() {
TextEditor ob = newTextEditorInstance(); TextEditor ob = (TextEditor)creator.toData();
ob.setRegex(this.regPane.update()); ob.setRegex(this.regPane.update());
ob.setWaterMark(waterMarkDictPane.getText()); ob.setWaterMark(waterMarkDictPane.getText());
formWidgetValuePane.update(ob); formWidgetValuePane.update(ob);

2
designer_form/src/com/fr/design/widget/ui/designer/layout/FRAbsoluteLayoutDefinePane.java

@ -99,7 +99,7 @@ public class FRAbsoluteLayoutDefinePane extends AbstractDataModify<WAbsoluteLayo
} }
public WAbsoluteLayout updateSubPane() { public WAbsoluteLayout updateSubPane() {
return new WAbsoluteLayout(); return (WAbsoluteLayout)creator.toData();
} }
public void populateSubPane(WAbsoluteLayout ob) { public void populateSubPane(WAbsoluteLayout ob) {

Loading…
Cancel
Save