function ProjectTabbedPane(_1,_2,_3,_4,_5,_6){
if(arguments.length>0){
this.initPane(_1,_2,_3,_4,_5,_6);
}
}
ProjectTabbedPane.prototype.windowId=null;
ProjectTabbedPane.prototype.tabId=null;
ProjectTabbedPane.prototype.projectId=null;
ProjectTabbedPane.prototype.tabElement=null;
ProjectTabbedPane.prototype.contentDiv=null;
ProjectTabbedPane.prototype.title=null;
ProjectTabbedPane.prototype.tabClass=null;
ProjectTabbedPane.prototype.url=null;
ProjectTabbedPane.prototype.projectWindow=null;
ProjectTabbedPane.prototype.state=null;
ProjectTabbedPane.prototype.initPane=function(_7,_8,_9,_a,_b,_c){
this.title=_7;
this.tabClass=_8;
this.url=_9;
this.windowId=_a;
this.tabId=_b;
this.projectWindow=_c;
this.projectId=_c.getElementId();
};
ProjectTabbedPane.prototype.getTabId=function(){
return this.tabId;
};
ProjectTabbedPane.prototype.getProjectWindow=function(){
return this.projectWindow;
};
ProjectTabbedPane.prototype.setProjectName=function(_d,_e){
};
ProjectTabbedPane.prototype.getTabElement=function(){
if(this.tabElement==null){
this.tabElement=document.createElement("li");
this.tabElement.id=this.tabId+"_tab";
this.tabElement.className=this.tabClass;
var f="new Function(\"myWinMgr.getWindow('"+this.windowId+"').switchTo('"+this.tabId+"');\")";
EventUtil.addEventHandler(this.tabElement,"click",eval(f));
this.tabElement.innerHTML="<a href=\"javascript: void(0);\" title=\""+this.title+"\">"+this.title+"</a>";
this.enableTab();
}
return this.tabElement;
};
ProjectTabbedPane.prototype.getContentDiv=function(){
if(this.contentDiv==null){
this.contentDiv=document.createElement("div");
this.contentDiv.id=this.tabId+"_content";
this.contentDiv.className="myProjectTabbedPane";
}
return this.contentDiv;
};
ProjectTabbedPane.prototype.getProjectId=function(){
return this.projectId;
};
ProjectTabbedPane.prototype.setProjectId=function(_10){
this.projectId=_10;
};
ProjectTabbedPane.prototype.load=function(){
var url=this.url+"?windowId="+this.windowId+"&tabId="+this.tabId;
if(this.projectId!=null){
url=url+"&projectId="+this.projectId;
}
this.contentDiv.innerHTML=ResourceLoader.getContent(url);
};
ProjectTabbedPane.prototype.selectTab=function(){
if(this.tabElement!=null){
zSetClass(this.tabElement.firstChild,"active");
}
this.state="selected";
this.showContent();
};
ProjectTabbedPane.prototype.unselectTab=function(){
this.enableTab();
this.hideContent();
};
ProjectTabbedPane.prototype.enableTab=function(){
if(this.tabElement!=null){
zSetClass(this.tabElement.firstChild,"");
}
this.state="enabled";
};
ProjectTabbedPane.prototype.isTabEnabled=function(){
return (this.state=="enabled");
};
ProjectTabbedPane.prototype.isTabDisabled=function(){
return (this.state=="disabled");
};
ProjectTabbedPane.prototype.isTabSelected=function(){
return (this.state=="selected");
};
ProjectTabbedPane.prototype.disableTab=function(){
if(this.tabElement!=null){
this.tabElement.style.color="#AAAAAA";
zSetClass(this.tabElement.firstChild,"disabled");
}
this.state="disabled";
};
ProjectTabbedPane.prototype.showContent=function(){
if(this.contentDiv!=null){
if(this.contentDiv.innerHTML==null||this.contentDiv.innerHTML==""){
this.load();
}
this.contentDiv.style.display="block";
}
};
ProjectTabbedPane.prototype.hideContent=function(){
if(this.contentDiv!=null){
this.contentDiv.style.display="none";
}
};

