|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe.cell.settingpane; |
|
|
|
|
|
|
|
|
|
import com.fr.base.Style; |
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.editor.ValueEditorPane; |
|
|
|
@ -21,11 +22,13 @@ import com.fr.design.mainframe.theme.utils.DefaultThemedTemplateCellElementCase;
|
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
|
import com.fr.report.cell.cellattr.CellGUIAttr; |
|
|
|
|
import com.fr.report.cell.cellattr.CellInsertPolicyAttr; |
|
|
|
|
import com.fr.report.cell.cellattr.CellPageAttr; |
|
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import java.awt.Color; |
|
|
|
@ -327,13 +330,20 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
|
Style elementStyle = cellElement.getStyle(); |
|
|
|
|
FRFont frFont = elementStyle.getFRFont(); |
|
|
|
|
if (showContent.getSelectedIndex() == 3) { |
|
|
|
|
fileNamePane.setPreferredSize(new Dimension(100, 20)); |
|
|
|
|
fileNameLayout.show(fileNamePane, "content"); |
|
|
|
|
frFont = frFont.applyForeground(Color.blue); |
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_THIN); |
|
|
|
|
} else { |
|
|
|
|
fileNameLayout.show(fileNamePane, "none"); |
|
|
|
|
fileNamePane.setPreferredSize(new Dimension(0, 0)); |
|
|
|
|
frFont = frFont.applyForeground(Color.black); |
|
|
|
|
frFont = frFont.applyUnderline(Constants.LINE_NONE); |
|
|
|
|
} |
|
|
|
|
cellElement.setStyle(elementStyle.deriveFRFont(frFont)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return fileNamePane; |
|
|
|
|