package com.vci.client.uif.engine.client;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
import com.vci.client.ui.swing.components.VCIJTabbedPane;
|
|
/**
|
* 用于封装tab区域的tab页,记录当前tab页签中的所有model
|
* @author VCI_STGK_Lincq
|
*
|
*/
|
public class TabPagePanel extends VCIJTabbedPane{
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -8858282683016355856L;
|
|
private List<IDataModel> tabPageModes;
|
private HashMap<String, Boolean> isLoadList = new HashMap<String, Boolean>();
|
private Map<Integer, List<IRegionPanel>> childPanelMap = new HashMap<Integer, List<IRegionPanel>>();
|
/*private Map<Integer, IDataModel> indexModels = new HashMap<Integer, IDataModel>();*/
|
|
public void setTabPageModel(List<IDataModel> modelList) {
|
this.tabPageModes = modelList;
|
}
|
|
public List<IDataModel> getTabPageModel() {
|
return this.tabPageModes;
|
}
|
|
/*public IDataModel getIndexModel(Integer index) {
|
return this.indexModels.get(index);
|
}
|
|
public void addIndexModel(IDataModel model) {
|
indexModels.put(indexModels.size(), model);
|
}
|
|
public void setIndexModels(Map<Integer, IDataModel> models) {
|
this.indexModels = models;
|
}
|
|
public Map<Integer, IDataModel> getIndexModels() {
|
return this.indexModels;
|
}*/
|
|
public void setLoadList(String tabName) {
|
isLoadList.put(tabName, true);
|
}
|
|
public boolean checkIsLoad(String tabName) {
|
Boolean rs = isLoadList.get(tabName);
|
if (rs == null) {
|
return false;
|
} else {
|
return rs.booleanValue();
|
}
|
}
|
|
public Map<Integer, List<IRegionPanel>> getChildPanelMap() {
|
return childPanelMap;
|
}
|
|
public void setChildPanelMap(Map<Integer, List<IRegionPanel>> childPanelMap) {
|
this.childPanelMap = childPanelMap;
|
}
|
|
}
|