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.
65 lines
2.3 KiB
65 lines
2.3 KiB
2 years ago
|
package com.fr.plugin.db.procedure.designframe;
|
||
|
|
||
|
import com.fr.design.dialog.BasicDialog;
|
||
|
import com.fr.design.dialog.DialogActionAdapter;
|
||
|
import com.fr.design.fun.impl.AbstractDsinFrameUpButtonProvider;
|
||
|
import com.fr.design.gui.ibutton.UIButton;
|
||
|
import com.fr.design.mainframe.DesignerContext;
|
||
|
import com.fr.design.mainframe.DesignerFrame;
|
||
|
import com.fr.design.mainframe.JTemplate;
|
||
|
import com.fr.design.webattr.ReportWebAttrPane;
|
||
|
import com.fr.general.IOUtils;
|
||
|
import com.fr.log.FineLoggerFactory;
|
||
|
import com.fr.transaction.CallBackAdaptor;
|
||
|
import com.fr.transaction.Configurations;
|
||
|
import com.fr.transaction.WorkerFacade;
|
||
|
import com.fr.web.attr.ReportWebAttr;
|
||
|
|
||
|
import javax.swing.*;
|
||
|
import java.awt.event.ActionEvent;
|
||
|
|
||
|
public class DisplayProcedureButton extends AbstractDsinFrameUpButtonProvider {
|
||
|
@Override
|
||
|
public int currentAPILevel() {
|
||
|
return CURRENT_LEVEL;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public UIButton[] getUpButtons(int menuState) {
|
||
|
UIButton btn = new UIButton(IOUtils.readIcon("/com/fr/base/images/cell/control/default.png"));
|
||
|
btn.addActionListener(new AbstractAction() {
|
||
|
@Override
|
||
|
public void actionPerformed(ActionEvent e) {
|
||
|
FineLoggerFactory.getLogger().info("点击工具栏按钮");
|
||
|
//DesignerFrame designerFrame = DesignerContext.getDesignerFrame();
|
||
|
// new TemplateProcedureDialog();
|
||
|
final TemplateProcedurcePanel var4 = new TemplateProcedurcePanel() {
|
||
|
public void complete() {
|
||
|
this.populate(null);
|
||
|
}
|
||
|
};
|
||
|
BasicDialog var5 = var4.showWindow(DesignerContext.getDesignerFrame());
|
||
|
|
||
|
var5.addDialogActionListener(new DialogActionAdapter() {
|
||
|
public void doOk() {
|
||
|
FineLoggerFactory.getLogger().info("点击确定按钮.....");
|
||
|
}
|
||
|
|
||
|
public void doCancel(){
|
||
|
FineLoggerFactory.getLogger().info("点击取消按钮.....");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
var5.setVisible(true);
|
||
|
|
||
|
|
||
|
//FineJOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(),"Hello World!");
|
||
|
}
|
||
|
});
|
||
|
return new UIButton[]{
|
||
|
btn
|
||
|
};
|
||
|
}
|
||
|
}
|