Browse Source
* commit '1bd82501ff4752a5d5c2c575038d01f7238663ad': REPORT-3348 数据列集选择组件布局修改,一些代码结构 REPORT-3348 单元格元素数据列基本设置OK REPORT-3348 数据列基本设置添加过滤条件设置,多个文件换行符和todo REPORT-3348 单元格元素数据列基本设置动态加载 REPORT-3348,踩坑,数据列展现方案确定master
MoMeak
7 years ago
12 changed files with 1172 additions and 908 deletions
@ -0,0 +1,38 @@
|
||||
package com.fr.design.dscolumn; |
||||
|
||||
import com.fr.design.mainframe.cell.CellEditorPane; |
||||
import com.fr.report.cell.TemplateCellElement; |
||||
|
||||
|
||||
/** |
||||
* 单元格元素 数据列 基本设置内容面板 |
||||
* |
||||
* @author yaoh.wu |
||||
* @version 2017年7月25日 |
||||
* @since 9.0 |
||||
*/ |
||||
public class DSColumnAdvancedEditorPane extends CellEditorPane { |
||||
|
||||
|
||||
@Override |
||||
public String getIconPath() { |
||||
return "Advanced"; |
||||
} |
||||
|
||||
@Override |
||||
public String title4PopupWindow() { |
||||
return "Advanced"; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public void update() { |
||||
|
||||
} |
||||
|
||||
@Override |
||||
public void populate(TemplateCellElement cellElement) { |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,84 @@
|
||||
package com.fr.design.dscolumn; |
||||
|
||||
import com.fr.design.layout.TableLayout; |
||||
import com.fr.design.layout.TableLayoutHelper; |
||||
import com.fr.design.mainframe.cell.CellEditorPane; |
||||
import com.fr.report.cell.TemplateCellElement; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* 单元格元素 数据列 高级设置内容面板 |
||||
* |
||||
* @author yaoh.wu |
||||
* @version 2017年7月25日 |
||||
* @since 9.0 |
||||
*/ |
||||
public class DSColumnBasicEditorPane extends CellEditorPane { |
||||
|
||||
//数据集和数据列
|
||||
private SelectedDataColumnPane dataPane; |
||||
//数据分组设置
|
||||
private ResultSetGroupDockingPane groupPane; |
||||
//当前编辑的单元格
|
||||
private TemplateCellElement cellElement; |
||||
//条件过滤按钮面板
|
||||
private JPanel conditionPane; |
||||
|
||||
public DSColumnBasicEditorPane(TemplateCellElement cellElement, SelectedDataColumnPane dataPane, ResultSetGroupDockingPane groupPane, JPanel conditionPane) { |
||||
this.setLayout(new BorderLayout()); |
||||
this.cellElement = cellElement; |
||||
this.dataPane = dataPane; |
||||
this.groupPane = groupPane; |
||||
this.conditionPane = conditionPane; |
||||
this.add(this.createContentPane(), BorderLayout.CENTER); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public String getIconPath() { |
||||
return "Basic"; |
||||
} |
||||
|
||||
@Override |
||||
public String title4PopupWindow() { |
||||
return "Basic"; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public void update() { |
||||
dataPane.update(this.cellElement); |
||||
groupPane.update(); |
||||
} |
||||
|
||||
@Override |
||||
public void populate(TemplateCellElement cellElement) { |
||||
this.cellElement = cellElement; |
||||
dataPane.populate(null, cellElement); |
||||
groupPane.populate(cellElement); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 创建有内容的面板显示信息 |
||||
* |
||||
* @return content JPanel |
||||
*/ |
||||
private JPanel createContentPane() { |
||||
double p = TableLayout.PREFERRED; |
||||
double f = TableLayout.FILL; |
||||
double[] columnSize = {f}; |
||||
double[] rowSize = {p, p, p}; |
||||
Component[][] components = new Component[][]{ |
||||
//数据集列选择
|
||||
new Component[]{this.dataPane}, |
||||
//数据分组设置
|
||||
new Component[]{this.groupPane}, |
||||
//条件过滤
|
||||
new Component[]{this.conditionPane} |
||||
}; |
||||
return TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); |
||||
} |
||||
} |
@ -0,0 +1,30 @@
|
||||
package com.fr.design.mainframe.cell; |
||||
|
||||
import com.fr.design.dialog.BasicPane; |
||||
import com.fr.report.cell.TemplateCellElement; |
||||
|
||||
/** |
||||
* 右侧单元格元素面板抽象类 |
||||
* |
||||
* @author yaoh.wu |
||||
* @version 2017年7月25日 |
||||
* @since 9.0 |
||||
*/ |
||||
public abstract class CellEditorPane extends BasicPane { |
||||
|
||||
public abstract String getIconPath(); |
||||
|
||||
public abstract String title4PopupWindow(); |
||||
|
||||
/** |
||||
* 从面板拿数据保存 |
||||
*/ |
||||
public abstract void update(); |
||||
|
||||
/** |
||||
* 更新面板数据 |
||||
* |
||||
* @param cellElement 单元格 |
||||
*/ |
||||
public abstract void populate(TemplateCellElement cellElement); |
||||
} |
@ -1,57 +1,57 @@
|
||||
package com.fr.design.mainframe.cell; |
||||
|
||||
import java.awt.BorderLayout; |
||||
|
||||
import javax.swing.BorderFactory; |
||||
import javax.swing.JPanel; |
||||
|
||||
import com.fr.design.gui.ilable.UILabel; |
||||
import com.fr.general.Inter; |
||||
import com.fr.design.selection.QuickEditor; |
||||
import com.fr.general.Inter; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* QuickEditorRegion |
||||
* |
||||
* @editor zhou |
||||
* @since 2012-3-23下午3:21:36 |
||||
* @author zhou, yaoh.wu |
||||
* @version 2017年7月25日 |
||||
* @since 8.0 |
||||
*/ |
||||
|
||||
public class QuickEditorRegion extends JPanel { |
||||
|
||||
public static QuickEditorRegion getInstance() { |
||||
return singleton; |
||||
} |
||||
|
||||
public static JPanel getEmptyEditor() { |
||||
if(EMPTY == null) { |
||||
EMPTY = new JPanel(new BorderLayout()); |
||||
UILabel content = new UILabel(Inter.getLocText(new String[]{"DataFunction-None", "HJS-Message", "Form-Widget_Property_Table"})+"!"); |
||||
content.setBorder(BorderFactory.createEmptyBorder(0, 70, 0, 0)); |
||||
EMPTY.add(content, BorderLayout.CENTER); |
||||
} |
||||
return EMPTY; |
||||
} |
||||
|
||||
private static QuickEditorRegion singleton = new QuickEditorRegion(); |
||||
private static JPanel EMPTY; |
||||
|
||||
public QuickEditorRegion() { |
||||
this.setLayout(new BorderLayout()); |
||||
} |
||||
|
||||
/** |
||||
* 传值 |
||||
* |
||||
* @param ePane |
||||
*/ |
||||
public void populate(final QuickEditor quickEditor) { |
||||
this.removeAll(); |
||||
if(quickEditor.getComponentCount() == 0) { |
||||
this.add(getEmptyEditor(), BorderLayout.CENTER); |
||||
} else { |
||||
this.add(quickEditor, BorderLayout.CENTER); |
||||
} |
||||
validate(); |
||||
repaint(); |
||||
} |
||||
|
||||
private static QuickEditorRegion singleton = new QuickEditorRegion(); |
||||
private static JPanel EMPTY; |
||||
|
||||
private QuickEditorRegion() { |
||||
this.setLayout(new BorderLayout()); |
||||
} |
||||
|
||||
public static QuickEditorRegion getInstance() { |
||||
return singleton; |
||||
} |
||||
|
||||
public static JPanel getEmptyEditor() { |
||||
if (EMPTY == null) { |
||||
EMPTY = new JPanel(new BorderLayout()); |
||||
UILabel content = new UILabel(Inter.getLocText(new String[]{"DataFunction-None", "HJS-Message", "Form-Widget_Property_Table"}) + "!"); |
||||
content.setBorder(BorderFactory.createEmptyBorder(0, 70, 0, 0)); |
||||
EMPTY.add(content, BorderLayout.CENTER); |
||||
} |
||||
return EMPTY; |
||||
} |
||||
|
||||
/** |
||||
* 更新面板显示数据 |
||||
* |
||||
* @param currentEditor 当前正在编辑的单元格编辑器或者默认的单元格编辑器 |
||||
*/ |
||||
public void populate(final QuickEditor currentEditor) { |
||||
this.removeAll(); |
||||
if (currentEditor.getComponentCount() == 0) { |
||||
this.add(getEmptyEditor(), BorderLayout.CENTER); |
||||
} else { |
||||
this.add(currentEditor, BorderLayout.CENTER); |
||||
} |
||||
validate(); |
||||
repaint(); |
||||
} |
||||
} |
@ -1,61 +1,63 @@
|
||||
package com.fr.quickeditor.cellquick; |
||||
|
||||
import java.awt.event.ActionEvent; |
||||
import java.awt.event.ActionListener; |
||||
|
||||
import javax.swing.BorderFactory; |
||||
import javax.swing.JComponent; |
||||
|
||||
import com.fr.base.BaseUtils; |
||||
import com.fr.design.cell.editor.BiasTextPainterCellEditor.BiasTextPainterPane; |
||||
import com.fr.design.dialog.DialogActionAdapter; |
||||
import com.fr.design.gui.ibutton.UIButton; |
||||
import com.fr.design.mainframe.DesignerContext; |
||||
import com.fr.design.dialog.DialogActionAdapter; |
||||
import com.fr.general.ComparatorUtils; |
||||
import com.fr.general.Inter; |
||||
import com.fr.quickeditor.CellQuickEditor; |
||||
import com.fr.report.cell.painter.BiasTextPainter; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.event.ActionEvent; |
||||
import java.awt.event.ActionListener; |
||||
|
||||
/** |
||||
* 单元格元素斜线编辑器 |
||||
* TODO 9.0 大体没有改动 |
||||
*/ |
||||
public class CellBiasTextPainterEditor extends CellQuickEditor { |
||||
|
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
UIButton editbutton = new UIButton(Inter.getLocText("Edit"), BaseUtils.readIcon("/com/fr/design/images/m_insert/bias.png")); |
||||
editbutton.addActionListener(new ActionListener() { |
||||
|
||||
@Override |
||||
public void actionPerformed(ActionEvent e) { |
||||
showEditingDialog(); |
||||
} |
||||
}); |
||||
editbutton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
editbutton.setMargin(null); |
||||
editbutton.setOpaque(false); |
||||
return editbutton; |
||||
} |
||||
|
||||
private void showEditingDialog() { |
||||
final BiasTextPainter oldbiasTextPainter = (BiasTextPainter)cellElement.getValue(); |
||||
final BiasTextPainterPane biasTextPainterPane = new BiasTextPainterPane(); |
||||
biasTextPainterPane.populate(oldbiasTextPainter); |
||||
biasTextPainterPane.showSmallWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
||||
|
||||
@Override |
||||
public void doOk() { |
||||
BiasTextPainter newbiasTextPainter = biasTextPainterPane.update(); |
||||
if (!ComparatorUtils.equals(oldbiasTextPainter, newbiasTextPainter)) { |
||||
cellElement.setValue(newbiasTextPainter); |
||||
fireTargetModified(); |
||||
} |
||||
} |
||||
|
||||
}).setVisible(true); |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
// TODO Auto-generated method stub
|
||||
|
||||
} |
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
UIButton editbutton = new UIButton(Inter.getLocText("Edit"), BaseUtils.readIcon("/com/fr/design/images/m_insert/bias.png")); |
||||
editbutton.addActionListener(new ActionListener() { |
||||
|
||||
@Override |
||||
public void actionPerformed(ActionEvent e) { |
||||
showEditingDialog(); |
||||
} |
||||
}); |
||||
editbutton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
editbutton.setMargin(null); |
||||
editbutton.setOpaque(false); |
||||
return editbutton; |
||||
} |
||||
|
||||
private void showEditingDialog() { |
||||
final BiasTextPainter oldbiasTextPainter = (BiasTextPainter) cellElement.getValue(); |
||||
final BiasTextPainterPane biasTextPainterPane = new BiasTextPainterPane(); |
||||
biasTextPainterPane.populate(oldbiasTextPainter); |
||||
biasTextPainterPane.showSmallWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
||||
|
||||
@Override |
||||
public void doOk() { |
||||
BiasTextPainter newbiasTextPainter = biasTextPainterPane.update(); |
||||
if (!ComparatorUtils.equals(oldbiasTextPainter, newbiasTextPainter)) { |
||||
cellElement.setValue(newbiasTextPainter); |
||||
fireTargetModified(); |
||||
} |
||||
} |
||||
|
||||
}).setVisible(true); |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
// TODO Auto-generated method stub
|
||||
|
||||
} |
||||
|
||||
} |
@ -1,75 +1,77 @@
|
||||
package com.fr.quickeditor.cellquick; |
||||
|
||||
import java.awt.event.ActionEvent; |
||||
import java.awt.event.ActionListener; |
||||
|
||||
import javax.swing.BorderFactory; |
||||
import javax.swing.JComponent; |
||||
|
||||
import com.fr.base.BaseUtils; |
||||
import com.fr.base.Style; |
||||
import com.fr.design.dialog.DialogActionAdapter; |
||||
import com.fr.design.gui.ibutton.UIButton; |
||||
import com.fr.design.mainframe.DesignerContext; |
||||
import com.fr.design.report.SelectImagePane; |
||||
import com.fr.design.dialog.DialogActionAdapter; |
||||
import com.fr.general.ComparatorUtils; |
||||
import com.fr.general.Inter; |
||||
import com.fr.quickeditor.CellQuickEditor; |
||||
import com.fr.report.cell.cellattr.CellImage; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.event.ActionEvent; |
||||
import java.awt.event.ActionListener; |
||||
|
||||
/** |
||||
* 单元格元素图片编辑器 |
||||
* TODO 9.0大体上没有改动 |
||||
*/ |
||||
public class CellImageQuickEditor extends CellQuickEditor { |
||||
private static CellImageQuickEditor THIS; |
||||
private static CellImageQuickEditor THIS; |
||||
|
||||
public static final CellImageQuickEditor getInstance() { |
||||
if(THIS == null) { |
||||
THIS = new CellImageQuickEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
public static final CellImageQuickEditor getInstance() { |
||||
if (THIS == null) { |
||||
THIS = new CellImageQuickEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
|
||||
private CellImageQuickEditor() { |
||||
super(); |
||||
} |
||||
private CellImageQuickEditor() { |
||||
super(); |
||||
} |
||||
|
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
UIButton editbutton = new UIButton(Inter.getLocText("Edit"), BaseUtils.readIcon("/com/fr/design/images/m_insert/image.png")); |
||||
editbutton.addActionListener(new ActionListener() { |
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
UIButton editbutton = new UIButton(Inter.getLocText("Edit"), BaseUtils.readIcon("/com/fr/design/images/m_insert/image.png")); |
||||
editbutton.addActionListener(new ActionListener() { |
||||
|
||||
@Override |
||||
public void actionPerformed(ActionEvent e) { |
||||
showEditingDialog(); |
||||
} |
||||
}); |
||||
editbutton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
editbutton.setMargin(null); |
||||
editbutton.setOpaque(false); |
||||
return editbutton; |
||||
} |
||||
@Override |
||||
public void actionPerformed(ActionEvent e) { |
||||
showEditingDialog(); |
||||
} |
||||
}); |
||||
editbutton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
editbutton.setMargin(null); |
||||
editbutton.setOpaque(false); |
||||
return editbutton; |
||||
} |
||||
|
||||
private void showEditingDialog() { |
||||
final SelectImagePane imageEditorPane = new SelectImagePane(); |
||||
imageEditorPane.populate(cellElement); |
||||
final Object oldValue = cellElement.getValue(); |
||||
final Style oldStyle = cellElement.getStyle(); |
||||
imageEditorPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
||||
private void showEditingDialog() { |
||||
final SelectImagePane imageEditorPane = new SelectImagePane(); |
||||
imageEditorPane.populate(cellElement); |
||||
final Object oldValue = cellElement.getValue(); |
||||
final Style oldStyle = cellElement.getStyle(); |
||||
imageEditorPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
||||
|
||||
@Override |
||||
public void doOk() { |
||||
CellImage cellImage = imageEditorPane.update(); |
||||
if (!ComparatorUtils.equals(cellImage.getImage(), oldValue) || !ComparatorUtils.equals(cellImage.getStyle(), oldStyle)) { |
||||
cellElement.setValue(cellImage.getImage()); |
||||
cellElement.setStyle(cellImage.getStyle()); |
||||
fireTargetModified(); |
||||
} |
||||
} |
||||
@Override |
||||
public void doOk() { |
||||
CellImage cellImage = imageEditorPane.update(); |
||||
if (!ComparatorUtils.equals(cellImage.getImage(), oldValue) || !ComparatorUtils.equals(cellImage.getStyle(), oldStyle)) { |
||||
cellElement.setValue(cellImage.getImage()); |
||||
cellElement.setStyle(cellImage.getStyle()); |
||||
fireTargetModified(); |
||||
} |
||||
} |
||||
|
||||
}).setVisible(true); |
||||
} |
||||
}).setVisible(true); |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
@Override |
||||
protected void refreshDetails() { |
||||
|
||||
} |
||||
} |
||||
|
||||
} |
@ -1,50 +1,50 @@
|
||||
package com.fr.quickeditor.cellquick; |
||||
|
||||
import javax.swing.BorderFactory; |
||||
import javax.swing.JComponent; |
||||
|
||||
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.*; |
||||
|
||||
/** |
||||
* 单元格元素富文本编辑器 |
||||
* TODO 9.0 大体上没有改动 |
||||
*/ |
||||
public class CellRichTextEditor extends CellQuickEditor { |
||||
private UIButton subReportButton; |
||||
private static CellRichTextEditor THIS; |
||||
|
||||
public static final CellRichTextEditor getInstance() { |
||||
if(THIS == null) { |
||||
THIS = new CellRichTextEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
|
||||
private CellRichTextEditor() { |
||||
super(); |
||||
} |
||||
|
||||
/** |
||||
* 创建界面上中间的部分 |
||||
* |
||||
* @return 界面元素 |
||||
* |
||||
* |
||||
* @date 2014-12-7-下午9:41:52 |
||||
* |
||||
*/ |
||||
public JComponent createCenterBody() { |
||||
subReportButton = new UIButton(); |
||||
subReportButton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
subReportButton.setMargin(null); |
||||
subReportButton.setOpaque(false); |
||||
return subReportButton; |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
RichTextCellAction subReportCellAction = new RichTextCellAction(tc); |
||||
subReportCellAction.setName(Inter.getLocText("FR-Designer_RichTextEditor")); |
||||
subReportButton.setAction(subReportCellAction); |
||||
} |
||||
private UIButton subReportButton; |
||||
private static CellRichTextEditor THIS; |
||||
|
||||
public static final CellRichTextEditor getInstance() { |
||||
if (THIS == null) { |
||||
THIS = new CellRichTextEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
|
||||
private CellRichTextEditor() { |
||||
super(); |
||||
} |
||||
|
||||
/** |
||||
* 创建界面上中间的部分 |
||||
* |
||||
* @return 界面元素 |
||||
* @date 2014-12-7-下午9:41:52 |
||||
*/ |
||||
public JComponent createCenterBody() { |
||||
subReportButton = new UIButton(); |
||||
subReportButton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
subReportButton.setMargin(null); |
||||
subReportButton.setOpaque(false); |
||||
return subReportButton; |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
RichTextCellAction subReportCellAction = new RichTextCellAction(tc); |
||||
subReportCellAction.setName(Inter.getLocText("FR-Designer_RichTextEditor")); |
||||
subReportButton.setAction(subReportCellAction); |
||||
} |
||||
|
||||
} |
@ -1,42 +1,45 @@
|
||||
package com.fr.quickeditor.cellquick; |
||||
|
||||
import javax.swing.BorderFactory; |
||||
import javax.swing.JComponent; |
||||
|
||||
import com.fr.design.actions.insert.cell.SubReportCellAction; |
||||
import com.fr.design.gui.ibutton.UIButton; |
||||
import com.fr.general.Inter; |
||||
import com.fr.quickeditor.CellQuickEditor; |
||||
|
||||
import javax.swing.*; |
||||
|
||||
/** |
||||
* 单元格元素子报表编辑器 |
||||
* TODO 9.0大体上没有改动 |
||||
*/ |
||||
public class CellSubReportEditor extends CellQuickEditor { |
||||
private UIButton subReportButton; |
||||
private static CellSubReportEditor THIS; |
||||
|
||||
public static final CellSubReportEditor getInstance() { |
||||
if(THIS == null) { |
||||
THIS = new CellSubReportEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
|
||||
private CellSubReportEditor() { |
||||
super(); |
||||
} |
||||
|
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
subReportButton = new UIButton(); |
||||
subReportButton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
subReportButton.setMargin(null); |
||||
subReportButton.setOpaque(false); |
||||
return subReportButton; |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
SubReportCellAction subReportCellAction = new SubReportCellAction(tc); |
||||
subReportCellAction.setName(Inter.getLocText(new String[]{"Edit", "Sub_Report"})); |
||||
subReportButton.setAction(subReportCellAction); |
||||
} |
||||
private UIButton subReportButton; |
||||
private static CellSubReportEditor THIS; |
||||
|
||||
public static final CellSubReportEditor getInstance() { |
||||
if (THIS == null) { |
||||
THIS = new CellSubReportEditor(); |
||||
} |
||||
return THIS; |
||||
} |
||||
|
||||
private CellSubReportEditor() { |
||||
super(); |
||||
} |
||||
|
||||
@Override |
||||
public JComponent createCenterBody() { |
||||
subReportButton = new UIButton(); |
||||
subReportButton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
||||
subReportButton.setMargin(null); |
||||
subReportButton.setOpaque(false); |
||||
return subReportButton; |
||||
} |
||||
|
||||
@Override |
||||
protected void refreshDetails() { |
||||
SubReportCellAction subReportCellAction = new SubReportCellAction(tc); |
||||
subReportCellAction.setName(Inter.getLocText(new String[]{"Edit", "Sub_Report"})); |
||||
subReportButton.setAction(subReportCellAction); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue