【Java开源代码栏目提醒】:网学会员--在 Java开源代码编辑为广大网友搜集整理了: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()
{
}
}