|
|
@ -372,10 +372,20 @@ public class TextFormatPane extends AbstractBasicStylePane implements GlobalName |
|
|
|
* update |
|
|
|
* update |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Style update(Style style) { |
|
|
|
public Style update(Style style) { |
|
|
|
if (ComparatorUtils.equals(globalNameListener.getGlobalName(), "textField") |
|
|
|
return updateByGlobalNamedSetting(style); |
|
|
|
|| ComparatorUtils.equals(globalNameListener.getGlobalName(), "typeComboBox") |
|
|
|
} |
|
|
|
|| ComparatorUtils.equals(globalNameListener.getGlobalName(), "roundingBox")) { |
|
|
|
|
|
|
|
return style.deriveFormat(this.update()); |
|
|
|
private Style updateByGlobalNamedSetting(Style style) { |
|
|
|
|
|
|
|
if (globalNameListener != null) { |
|
|
|
|
|
|
|
String[] alterSettingNames = new String[] {"typeComboBox", "textField", "roundingBox"}; |
|
|
|
|
|
|
|
String globalSettingName = globalNameListener.getGlobalName(); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(globalSettingName)) { |
|
|
|
|
|
|
|
for (String alterSettingName : alterSettingNames) { |
|
|
|
|
|
|
|
if (ComparatorUtils.equals(alterSettingName, globalSettingName)) { |
|
|
|
|
|
|
|
return style.deriveFormat(this.update()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return style; |
|
|
|
return style; |
|
|
|
} |
|
|
|
} |
|
|
|