📄 abstracteditui.java
字号:
package com.cownew.PIS.ui.commonUI;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JToolBar;
import com.cownew.PIS.ui.base.UIPanel;
import com.cownew.PIS.ui.utils.PISAbstractAction;
public class AbstractEditUI extends UIPanel
{
protected JToolBar toolBar = null;
protected ActionSubmit actionSubmit;
public AbstractEditUI() throws Exception
{
super();
}
protected void initialize()
{
super.initialize();
setSize(200,200);
}
public JToolBar getToolBar()
{
if (toolBar == null)
{
toolBar = new JToolBar();
toolBar.setFloatable(false);
initToolBar(toolBar);
}
return toolBar;
}
protected void initAction()
{
super.initAction();
actionSubmit = new ActionSubmit("保存");
}
protected void initToolBar(JToolBar tBar)
{
JButton btnSubmit = new JButton(actionSubmit);
tBar.add(btnSubmit);
}
class ActionSubmit extends PISAbstractAction
{
public ActionSubmit(String name)
{
super(name);
}
public void onActionPerformed(ActionEvent e) throws Exception
{
actionSubmit_actionPerformed(e);
}
}
public void actionSubmit_actionPerformed(ActionEvent e) throws Exception
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -