@ -25,7 +25,7 @@ import com.fr.design.mainframe.JTemplate;
import com.fr.design.mainframe.predefined.ui.PredefinedStyleSettingPane ;
import com.fr.design.mainframe.predefined.ui.preview.StyleSettingPreviewPane ;
import com.fr.design.style.BorderUtils ;
import com.fr.predefined.PredefinedPatternStyleManager ;
//import com.fr.predefined.PredefinedPatternStyleManager;
import com.fr.stable.Constants ;
import com.fr.stable.StringUtils ;
import com.fr.third.javax.annotation.Nonnull ;
@ -85,20 +85,20 @@ public class CellPredefinedStyleSettingPane extends PredefinedStyleSettingPane<N
public void populateBean ( NameStyle ob ) {
this . setPopulating ( true ) ;
// super.populate(ob);
PredefinedStyle currentStyle = PredefinedPatternStyleManager . INSTANCE . getStyleFromName ( getPredefinedStyleName ( ) ) ;
PredefinedCellStyleConfig config = currentStyle . getCellStyleConfig ( ) ;
Map < String , PredefinedCellStyle > allStyle = config . getAllStyles ( ) ;
this . applicationFormat . clearBoxItems ( ) ;
for ( String name : allStyle . keySet ( ) ) {
this . applicationFormat . addItem ( name ) ;
}
if ( allStyle . containsKey ( ob . getName ( ) ) ) {
this . applicationFormat . setSelectedItem ( ob . getName ( ) ) ;
} else {
this . applicationFormat . setSelectedItem ( config . getDefaultStyleName ( ) ) ;
}
this . customPredefinedStylePane . populateBean ( ob ) ;
this . setPopulating ( false ) ;
// PredefinedStyle currentStyle = PredefinedPatternStyleManager.INSTANCE.getStyleFromName(getPredefinedStyleName());
// PredefinedCellStyleConfig config = currentStyle.getCellStyleConfig();
// Map<String, PredefinedCellStyle> allStyle = config.getAllStyles();
// this.applicationFormat.clearBoxItems();
// for (String name : allStyle.keySet()) {
// this.applicationFormat.addItem(name);
// }
// if (allStyle.containsKey(ob.getName())) {
// this.applicationFormat.setSelectedItem(ob.getName());
// }else {
// this.applicationFormat.setSelectedItem(config.getDefaultStyleName());
// }
// this.customPredefinedStylePane.populateBean(ob);
// this.setPopulating(false);
}