|
|
|
@ -84,7 +84,7 @@ public class CellPredefinedStyleSettingPane extends PredefinedStyleSettingPane<N
|
|
|
|
|
@Override |
|
|
|
|
public void populateBean(NameStyle ob) { |
|
|
|
|
this.setPopulating(true); |
|
|
|
|
super.populate(ob); |
|
|
|
|
// super.populate(ob);
|
|
|
|
|
PredefinedStyle currentStyle = PredefinedPatternStyleManager.INSTANCE.getStyleFromName(getPredefinedStyleName()); |
|
|
|
|
PredefinedCellStyleConfig config = currentStyle.getCellStyleConfig(); |
|
|
|
|
Map<String, PredefinedCellStyle> allStyle = config.getAllStyles(); |
|
|
|
@ -122,7 +122,7 @@ public class CellPredefinedStyleSettingPane extends PredefinedStyleSettingPane<N
|
|
|
|
|
public NameStyle updateBean() { |
|
|
|
|
Style style = updateStyle(); |
|
|
|
|
if (!(style instanceof NameStyle)) { |
|
|
|
|
return NameStyle.createCustomStyle(style); |
|
|
|
|
// return NameStyle.createCustomStyle(style);
|
|
|
|
|
} |
|
|
|
|
return (NameStyle) style; |
|
|
|
|
} |
|
|
|
@ -138,7 +138,8 @@ public class CellPredefinedStyleSettingPane extends PredefinedStyleSettingPane<N
|
|
|
|
|
|
|
|
|
|
private NameStyle updatePredefinedStyle() { |
|
|
|
|
Object selectItem = this.applicationFormat.getSelectedItem(); |
|
|
|
|
return NameStyle.createPredefinedStyle(getPredefinedStyleName(), selectItem == null ? StringUtils.EMPTY : selectItem.toString(), Style.getInstance()); |
|
|
|
|
// return NameStyle.createPredefinedStyle(getPredefinedStyleName(), selectItem == null ? StringUtils.EMPTY : selectItem.toString(), Style.getInstance());
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class CustomStylePane extends MultiTabPane<Style> { |
|
|
|
|