|
|
|
@ -77,9 +77,8 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
public void populate(FRFont frFont) { |
|
|
|
|
UIObserverListener listener = fontNameComboBox == null ? null : fontNameComboBox.getUiObserverListener(); |
|
|
|
|
removeAllComboBoxListener(); |
|
|
|
|
if (frFont == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (frFont != null) { |
|
|
|
|
fontNameComboBox.setSelectedItem(frFont.getFamily()); |
|
|
|
|
bold.setSelected(frFont.isBold()); |
|
|
|
|
italic.setSelected(frFont.isItalic()); |
|
|
|
@ -89,6 +88,7 @@ public class ChartTextAttrPane extends BasicPane {
|
|
|
|
|
if (fontColor != null) { |
|
|
|
|
fontColor.setColor(frFont.getForeground()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//更新结束后,注册监听器
|
|
|
|
|
registerAllComboBoxListener(listener); |
|
|
|
|