|
|
@ -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.PredefinedStyleSettingPane; |
|
|
|
import com.fr.design.mainframe.predefined.ui.preview.StyleSettingPreviewPane; |
|
|
|
import com.fr.design.mainframe.predefined.ui.preview.StyleSettingPreviewPane; |
|
|
|
import com.fr.design.style.BorderUtils; |
|
|
|
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.Constants; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.third.javax.annotation.Nonnull; |
|
|
|
import com.fr.third.javax.annotation.Nonnull; |
|
|
@ -85,20 +85,20 @@ public class CellPredefinedStyleSettingPane extends PredefinedStyleSettingPane<N |
|
|
|
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();
|
|
|
|
this.applicationFormat.clearBoxItems(); |
|
|
|
// this.applicationFormat.clearBoxItems();
|
|
|
|
for (String name : allStyle.keySet()) { |
|
|
|
// for (String name : allStyle.keySet()) {
|
|
|
|
this.applicationFormat.addItem(name); |
|
|
|
// this.applicationFormat.addItem(name);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (allStyle.containsKey(ob.getName())) { |
|
|
|
// if (allStyle.containsKey(ob.getName())) {
|
|
|
|
this.applicationFormat.setSelectedItem(ob.getName()); |
|
|
|
// this.applicationFormat.setSelectedItem(ob.getName());
|
|
|
|
}else { |
|
|
|
// }else {
|
|
|
|
this.applicationFormat.setSelectedItem(config.getDefaultStyleName()); |
|
|
|
// this.applicationFormat.setSelectedItem(config.getDefaultStyleName());
|
|
|
|
} |
|
|
|
// }
|
|
|
|
this.customPredefinedStylePane.populateBean(ob); |
|
|
|
// this.customPredefinedStylePane.populateBean(ob);
|
|
|
|
this.setPopulating(false); |
|
|
|
// this.setPopulating(false);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|