Browse Source

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

* commit '0c6d493278801b8df1b64f76f30587c72755fc7a':
  REPORT-5692 [9.0三轮回归] 查询按钮改名字后,不会立即在设计器改变名字
master
superman 7 years ago
parent
commit
9dcfab76c9
  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() { protected String getIconName() {
return "button_16.png"; 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