|
|
|
@ -9,7 +9,9 @@ import com.fr.design.mainframe.ElementCasePane;
|
|
|
|
|
import com.fr.design.mainframe.cell.settingpane.style.StylePane; |
|
|
|
|
import com.fr.design.mainframe.theme.utils.DefaultThemedTemplateCellElementCase; |
|
|
|
|
import com.fr.design.style.BorderUtils; |
|
|
|
|
import com.fr.design.utils.gui.AdjustWorkBookDefaultStyleUtils; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.report.cell.DefaultTemplateCellElement; |
|
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
|
|
|
|
|
@ -18,6 +20,7 @@ import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author zhou |
|
|
|
@ -112,9 +115,13 @@ public class CellStylePane extends AbstractCellAttrPane {
|
|
|
|
|
public void visit(int column, int row, TemplateCellElement cellElement) { |
|
|
|
|
if (cellElement == null) { |
|
|
|
|
cellElement = DefaultThemedTemplateCellElementCase.createInstance(column, row); |
|
|
|
|
AdjustWorkBookDefaultStyleUtils.adjustCellElement(cellElement); |
|
|
|
|
elementCase.addCellElement(cellElement); |
|
|
|
|
} |
|
|
|
|
Style style = stylePane.updateBean(); |
|
|
|
|
if (style == null) { |
|
|
|
|
style = AdjustWorkBookDefaultStyleUtils.adjustCellElement(Style.DEFAULT_STYLE); |
|
|
|
|
} |
|
|
|
|
cellElement.setStyle(style); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|