You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
package com.fr.quickeditor.cellquick; |
|
|
|
import com.fr.design.actions.insert.cell.RichTextCellAction; |
|
import com.fr.design.gui.ibutton.UIButton; |
|
import com.fr.general.Inter; |
|
import com.fr.quickeditor.CellQuickEditor; |
|
|
|
import javax.swing.*; |
|
import java.awt.*; |
|
|
|
/** |
|
* 单元格元素富文本编辑器 |
|
* |
|
* @author yaoh.wu |
|
* @version 2017年8月7日10点53分 |
|
*/ |
|
public class CellRichTextEditor extends CellQuickEditor { |
|
private UIButton richTextButton; |
|
|
|
private CellRichTextEditor() { |
|
super(); |
|
} |
|
|
|
@SuppressWarnings("Duplicates") |
|
@Override |
|
public JComponent createCenterBody() { |
|
JPanel content = new JPanel(new BorderLayout()); |
|
content.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 15)); |
|
richTextButton = new UIButton(); |
|
richTextButton.setOpaque(false); |
|
content.add(richTextButton, BorderLayout.CENTER); |
|
return content; |
|
} |
|
|
|
@Override |
|
protected void refreshDetails() { |
|
RichTextCellAction subReportCellAction = new RichTextCellAction(tc); |
|
subReportCellAction.setName(Inter.getLocText("FR-Designer_RichTextEditor")); |
|
richTextButton.setAction(subReportCellAction); |
|
} |
|
|
|
} |