|
|
|
@ -3,6 +3,7 @@ package com.fr.design.actions.report;
|
|
|
|
|
import com.fr.design.actions.ReportComponentAction; |
|
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
|
import com.fr.design.dialog.DialogActionListener; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.design.mainframe.WorkSheetDesigner; |
|
|
|
@ -11,10 +12,15 @@ import com.fr.design.webattr.ReportWriteAttrPane;
|
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
|
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* ReportWriteAttrAction |
|
|
|
|
*/ |
|
|
|
|
public class ReportWriteAttrAction extends ReportComponentAction<WorkSheetDesigner> { |
|
|
|
|
public static final Dimension WINDOW_CUSTOM_SIZE = new Dimension(720, 600); |
|
|
|
|
|
|
|
|
|
public ReportWriteAttrAction(WorkSheetDesigner t) { |
|
|
|
|
super(t); |
|
|
|
|
this.setMenuKeySet(KeySetUtils.REPORT_WRITE); |
|
|
|
@ -49,7 +55,7 @@ public class ReportWriteAttrAction extends ReportComponentAction<WorkSheetDesign
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
BasicDialog dialog = reportWritePane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
|
|
|
|
DialogActionListener dialogActionListener = new DialogActionAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void doOk() { |
|
|
|
|
isChange = true; |
|
|
|
@ -67,7 +73,9 @@ public class ReportWriteAttrAction extends ReportComponentAction<WorkSheetDesign
|
|
|
|
|
public void doCancel() { |
|
|
|
|
isChange = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
BasicDialog dialog = reportWritePane.showWindowWithCustomSize(DesignerContext.getDesignerFrame(), dialogActionListener, WINDOW_CUSTOM_SIZE); |
|
|
|
|
|
|
|
|
|
DesignerContext.setReportWritePane(dialog); |
|
|
|
|
dialog.setVisible(true); |
|
|
|
|