|
|
|
@ -372,10 +372,20 @@ public class TextFormatPane extends AbstractBasicStylePane implements GlobalName
|
|
|
|
|
* update |
|
|
|
|
*/ |
|
|
|
|
public Style update(Style style) { |
|
|
|
|
if (ComparatorUtils.equals(globalNameListener.getGlobalName(), "textField") |
|
|
|
|
|| ComparatorUtils.equals(globalNameListener.getGlobalName(), "typeComboBox") |
|
|
|
|
|| ComparatorUtils.equals(globalNameListener.getGlobalName(), "roundingBox")) { |
|
|
|
|
return style.deriveFormat(this.update()); |
|
|
|
|
return updateByGlobalNamedSetting(style); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|