📄 uipanel.java
字号:
package com.cownew.PIS.ui.base;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JToolBar;
abstract public class UIPanel extends JPanel
{
public UIPanel() throws Exception
{
super(true);
initialize();
}
/**
* 初始化UI
*
*/
protected void initialize()
{
initAction();
}
/**
* 初始化action
*
*/
protected void initAction()
{
}
/**
* 得到UI的标题
* @return
*/
public String getUITitle()
{
return "";
}
/**
* 得到主菜单
* @return
*/
public JMenuBar getMainMenuBar()
{
return null;
}
/**
* 得到工具栏
* @return
*/
public JToolBar getToolBar()
{
return null;
}
/**
* UI关闭时触发
*
*/
public void onClose()
{
}
/**
* UI打开时触发
*
*/
public void onOpen()
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -