Browse Source

REPORT-5692 [9.0三轮回归] 查询按钮改名字后,不会立即在设计器改变名字

master
kerry 7 years ago
parent
commit
b3477fb7f8
  1. 17
      designer_form/src/com/fr/design/designer/creator/XButton.java

17
designer_form/src/com/fr/design/designer/creator/XButton.java

@ -289,4 +289,21 @@ public class XButton extends XWidgetCreator {
protected String getIconName() {
return "button_16.png";
}
/**
* data属性改变触发其他操作
*
*/
public void firePropertyChange(){
FreeButton button = (FreeButton) data;
setButtonText(button.getText());
checkButonType();
if (button.getFont() != null) {
contentLabel.setFont(button.getFont().applyResolutionNP(
ScreenResolution.getScreenResolution()));
contentLabel.setForeground(button.getFont().getForeground());
}
}
}
Loading…
Cancel
Save