Browse Source

Merge pull request #1466 in BA/design from ~KERRY/design:master to master

* commit 'b3477fb7f88dae3ae559fd6d8385bd59709a00ae':
  REPORT-5692 [9.0三轮回归] 查询按钮改名字后,不会立即在设计器改变名字
master
superman 7 years ago
parent
commit
c0e1da0b7c
  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