Browse Source

REPORT-5553 [9.0三轮回归]表单复选框控件文本内容修改无效

master
kerry 7 years ago
parent
commit
300c51c305
  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() { protected String getIconName() {
return "check_box_16.png"; 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