Browse Source

Merge pull request #1431 in BA/design from ~KERRY/design:release/9.0 to release/9.0

* commit '345ad71fb5a87b55be006feeb820b733fccc21a9':
  REPORT-5553 [9.0三轮回归]表单复选框控件文本内容修改无效
master
superman 7 years ago
parent
commit
5066e3e6e2
  1. 8
      designer_form/src/com/fr/design/designer/creator/XCheckBox.java

8
designer_form/src/com/fr/design/designer/creator/XCheckBox.java

@ -83,4 +83,12 @@ public class XCheckBox extends XWidgetCreator {
protected String getIconName() {
return "check_box_16.png";
}
public void firePropertyChange(){
((UICheckBox) editor).setText(((CheckBox) data).getText());
WidgetValue value = ((CheckBox) data).getWidgetValue();
if (value != null && value.getValue() instanceof Boolean) {
((UICheckBox) editor).setSelected((Boolean) value.getValue());
}
}
}
Loading…
Cancel
Save