|
|
|
@ -5,16 +5,18 @@ import com.fr.design.actions.utils.ReportActionUtils;
|
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.mainframe.cell.settingpane.style.StylePane; |
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.JFrame; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author zhou |
|
|
|
@ -101,12 +103,12 @@ public class CellStylePane extends AbstractCellAttrPane {
|
|
|
|
|
TemplateCellElement cellElement = elementCase.getTemplateCellElement(column, row); |
|
|
|
|
if (cellElement == null) { |
|
|
|
|
cellElement = new DefaultTemplateCellElement(column, row); |
|
|
|
|
AdjustWorkBookDefaultStyleUtils.adjustCellElement(cellElement); |
|
|
|
|
elementCase.addCellElement(cellElement); |
|
|
|
|
} |
|
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
|
if (style == null) { |
|
|
|
|
style = Style.DEFAULT_STYLE; |
|
|
|
|
|
|
|
|
|
style = AdjustWorkBookDefaultStyleUtils.adjustCellElement(Style.DEFAULT_STYLE); |
|
|
|
|
} |
|
|
|
|
style = stylePane.updateStyle(style); |
|
|
|
|
cellElement.setStyle(style); |
|
|
|
|