|
|
@ -6,15 +6,18 @@ import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.mainframe.cell.settingpane.style.StylePane; |
|
|
|
import com.fr.design.mainframe.cell.settingpane.style.StylePane; |
|
|
|
import com.fr.design.mainframe.theme.utils.DefaultThemedTemplateCellElementCase; |
|
|
|
import com.fr.design.mainframe.theme.utils.DefaultThemedTemplateCellElementCase; |
|
|
|
import com.fr.design.style.BorderUtils; |
|
|
|
import com.fr.design.style.BorderUtils; |
|
|
|
|
|
|
|
import com.fr.design.utils.gui.AdjustWorkBookDefaultStyleUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
|
|
|
import com.fr.report.cell.DefaultTemplateCellElement; |
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
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.ChangeEvent; |
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author zhou |
|
|
|
* @author zhou |
|
|
@ -101,12 +104,12 @@ public class CellStylePane extends AbstractCellAttrPane { |
|
|
|
TemplateCellElement cellElement = elementCase.getTemplateCellElement(column, row); |
|
|
|
TemplateCellElement cellElement = elementCase.getTemplateCellElement(column, row); |
|
|
|
if (cellElement == null) { |
|
|
|
if (cellElement == null) { |
|
|
|
cellElement = DefaultThemedTemplateCellElementCase.createInstance(column, row); |
|
|
|
cellElement = DefaultThemedTemplateCellElementCase.createInstance(column, row); |
|
|
|
|
|
|
|
AdjustWorkBookDefaultStyleUtils.adjustCellElement(cellElement); |
|
|
|
elementCase.addCellElement(cellElement); |
|
|
|
elementCase.addCellElement(cellElement); |
|
|
|
} |
|
|
|
} |
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
Style style = cellElement.getStyle(); |
|
|
|
if (style == null) { |
|
|
|
if (style == null) { |
|
|
|
style = Style.DEFAULT_STYLE; |
|
|
|
style = AdjustWorkBookDefaultStyleUtils.adjustCellElement(Style.DEFAULT_STYLE); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
style = stylePane.updateStyle(style); |
|
|
|
style = stylePane.updateStyle(style); |
|
|
|
cellElement.setStyle(style); |
|
|
|
cellElement.setStyle(style); |
|
|
|