📄 sy01040a.java
字号:
package jm.form.gui.swing.game.sy.sy01;
import jm.entity.command.OftenCommandKeys;
import jm.entity.system.ESC000700;
import jm.entity.util.MenuFrameBean;
import jm.form.gui.swing.game.util.model.BaseInternalFrame;
import jm.framework.gui.ReLoad;
import jm.framework.gui.module.JMIcon;
import jm.util.JMMap;
/**
* <p>Title: 业务画面管理控制程序(InternalFrame)</p>
*
* <p>Copyright: Copyright (c) 2004-2006</p>
*
* <p>Company: 1SHome</p>
*
* <p>@author Spook</p>
*
* @since 1.3
* @see JDK 1.5.0.6
*/
public class SY01040A {
private String CLASS_NAME = "SY01040A";
private JMMap<String, BaseInternalFrame> gamens = new JMMap<String, BaseInternalFrame>();
public static SY01040A instance_ = null;
public static SY01040A getInstance () {
if (instance_ == null) {
instance_ = new SY01040A();
}
return instance_;
}
private SY01040A(){
}
/**
* 返回业务画面
* @param gamenID String
* @return JInternalFrame
* @throws Exception
*/
public BaseInternalFrame getInternalFrame (MenuFrameBean current) throws Exception {
return createInternalFrame(current);
}
private boolean isHave = false;
public boolean isHave(){
return isHave;
}
/**
* 创建业务画面
* 配置信息SC000700
*/
private BaseInternalFrame createInternalFrame (MenuFrameBean current) throws Exception {
ESC000700 currentFrameBean = current.getFrameBean();
String gamenID = current.getFrameBean().getGamenID();
BaseInternalFrame ret = null;
if (gamens.containsKey(gamenID)) {
isHave = true;
ret = gamens.get(gamenID);
} else {
isHave = false;
//生成运行画面
ret = (BaseInternalFrame) Class.forName(currentFrameBean.getGamenPath()).newInstance();
ret.setTitle(currentFrameBean.getGamenName());
ret.setClosable(OftenCommandKeys.ZW_TRUE.equals(currentFrameBean.getGamenClose()) ? true : false);
ret.setMaximizable(OftenCommandKeys.ZW_TRUE.equals(currentFrameBean.getGamenMax()) ? true : false);
ret.setIconifiable(OftenCommandKeys.ZW_TRUE.equals(currentFrameBean.getGamenMin()) ? true : false);
ret.setResizable(OftenCommandKeys.ZW_TRUE.equals(currentFrameBean.getGamenResize()) ? true : false);
// config.getOperationType();业务种类图片
ret.setFrameIcon((new JMIcon("image/title.jpg")));
////////////////////////////////////////////////////////////////////////
if(ret instanceof ReLoad){
((ReLoad)ret).reLoad();
}
//待定
ret.setTitle(currentFrameBean.getGamenName());
ret.actionPerformed(current,null);
ret.init(CLASS_NAME, "");
ret.setBounds(0, 0, 710, 580);
gamens.put(gamenID, ret);
}
return ret;
}
/**
* 关闭打开的业务画面
* @param gamenID String
* @return JInternalFrame
*/
public BaseInternalFrame closeInternalFrame (String gamenID) {
return gamens.remove(gamenID);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -