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