package com.vci.client.portal.UI.dialog;
|
|
import java.util.Map;
|
|
import javax.swing.JPanel;
|
|
|
|
/**
|
* VCI平台公共向导窗口中某步骤的Panel基类
|
* @Title :VCIGuideStepPanel.java
|
* @Description :
|
* @Copyright :宏博远达科技有限公司
|
* @Author :平台与规划部/ZhongGY/E-mail:zhonggy@vci-tech.com
|
* @Date :2015-6-4
|
* @Version :1
|
* @Other :产生注释:Alt+Shift+J
|
*/
|
public abstract class VCIGuideStepPanel extends JPanel {
|
|
private static final long serialVersionUID = 1L;
|
/**
|
* 所属的向导窗口
|
*/
|
private VCICommonGuideDialog ownParent = null;
|
|
private Map<String, Object> guidCommonShareData = null;
|
|
/**
|
* 前一步骤UI
|
*/
|
private VCIGuideStepPanel preStepUI = null;
|
/**
|
* 后一步骤UI
|
*/
|
private VCIGuideStepPanel nextStepUI = null;
|
|
public VCICommonGuideDialog getOwnParent() {
|
if (ownParent == null && preStepUI != null) {
|
ownParent = preStepUI.getOwnParent();
|
}
|
return ownParent;
|
}
|
|
/**
|
* 向导各步骤页面的共享数据
|
* @Title :getGuidCommonShareData
|
* @Description :
|
* @return
|
*/
|
@SuppressWarnings("deprecation")
|
public Map<String, Object> getGuidCommonShareData() {
|
guidCommonShareData = (Map<String, Object>)this.getOwnParent().getDialogCommonShareData();
|
return guidCommonShareData;
|
}
|
|
public void setOwnParent(VCICommonGuideDialog ownParent) {
|
this.ownParent = ownParent;
|
}
|
|
public VCIGuideStepPanel getPreStepUI() {
|
return preStepUI;
|
}
|
|
public void setPreStepUI(VCIGuideStepPanel preStepUI) {
|
this.preStepUI = preStepUI;
|
}
|
|
public VCIGuideStepPanel getNextStepUI() {
|
return nextStepUI;
|
}
|
|
public void setNextStepUI(VCIGuideStepPanel nextStepUI) {
|
this.nextStepUI = nextStepUI;
|
}
|
|
String dialogProcess = ""; //[第X步/共X步]
|
public String getDialogProcess() {
|
//TODO:
|
return dialogProcess;
|
}
|
|
/**
|
* 初始化界面(非强制的规范)
|
* @Title :initUI
|
* @Description :
|
*/
|
public abstract void initUI();
|
/**
|
* 初始化界面数据(非强制的规范)
|
* @Title :initData
|
* @Description :
|
*/
|
public abstract void initData();
|
/**
|
* 当前步骤名称:如"第一步:预览与校验"
|
* @Title :getStepName
|
* @Description :
|
* @return
|
*/
|
public abstract String getStepName();
|
|
/**
|
* 上一步按钮是否可见(通常第一步不可见)
|
* @Title :isPreBtnVisible
|
* @Description :
|
* @return
|
*/
|
public abstract boolean isPreBtnVisible();
|
/**
|
* 上一步按钮名称(默认为"上一步")
|
* @Title :getPreBtnText
|
* @Description :
|
* @return
|
*/
|
public abstract String getPreBtnText();
|
/**
|
* 上一步按钮的事件触发
|
* @Title :doPreBtnAction
|
* @Description :
|
* @return
|
*/
|
public abstract boolean doPreBtnAction();
|
|
/**
|
* 下一步按钮是否可见(通常最后一步不可见)
|
* @Title :isNextBtnVisible
|
* @Description :
|
* @return
|
*/
|
public abstract boolean isNextBtnVisible();
|
/**
|
* 下一步按钮名称(通常会修改,如"导出"/"导入")
|
* @Title :getNextBtnText
|
* @Description :
|
* @return
|
*/
|
public abstract String getNextBtnText();
|
/**
|
* 下一步按钮触发事件
|
* @Title :doNextBtnAction
|
* @Description :
|
* @return
|
*/
|
public abstract boolean doNextBtnAction();
|
|
/**
|
* 取消按钮是否可见(一般都可见)
|
* @Title :isCancelBtnVisible
|
* @Description :
|
* @return
|
*/
|
public abstract boolean isCancelBtnVisible();
|
/**
|
* 取消按钮名称(一般就是“取消”;但最后一步通常为"完成")
|
* @Title :getcancelBtnText
|
* @Description :
|
* @return
|
*/
|
public abstract String getcancelBtnText();
|
|
/* *//**
|
* 设置下一按钮是否可见(一般最后一步骤不可见)
|
* @Title :setNextBtnVisible
|
* @Description :
|
* @param b
|
*//*
|
abstract void setNextBtnVisible(boolean b) ;*/
|
}
|