YAHOO.widget.RadioNode=function(_1,_2,_3,_4,_5){
if(_2){
this.init(_1,_2,_3);
this.setUpLabel(_1);
_4?this.setCheckState(2):this.setCheckState(0);
this.checked=_4;
this.exclusive=_5;
}
};
YAHOO.widget.RadioNode.prototype=new YAHOO.widget.CheckNode();
YAHOO.widget.RadioNode.prototype.checked=false;
YAHOO.widget.RadioNode.prototype.checkState=0;
YAHOO.widget.RadioNode.prototype.getCheckElId=function(){
return "ygtvradio"+this.index;
};
YAHOO.widget.RadioNode.prototype.getCheckEl=function(){
return document.getElementById(this.getCheckElId());
};
YAHOO.widget.RadioNode.prototype.getCheckStyle=function(){
return "ygtvradio"+this.checkState;
};
YAHOO.widget.RadioNode.prototype.getCheckLink=function(){
return "YAHOO.widget.TreeView.getNode('"+this.tree.id+"',"+this.index+").checkClick()";
};
YAHOO.widget.RadioNode.prototype.checkClick=function(){
if(this.checkState===0){
this.check();
}else{
this.uncheck();
}
};
YAHOO.widget.RadioNode.prototype.updateCheckHtml=function(){
if(this.parent&&this.parent.childrenRendered){
this.getCheckEl().className=this.getCheckStyle();
}
};
YAHOO.widget.RadioNode.prototype.setCheckState=function(_6){
this.checkState=_6;
this.checked=(_6>0);
};
YAHOO.widget.RadioNode.prototype.check=function(){
if(!this.checked){
this.setCheckState(2);
this.updateCheckHtml();
this.updateParent();
this.layer.checked=true;
this.group.setSelected(this,true);
if(this.parent.checked&&this.parent.data!=null){
mapProperties.legend=this.parent.layer;
callMapRefresh();
}
}
};
YAHOO.widget.RadioNode.prototype.uncheck=function(){
if(!this.checked){
this.setCheckState(0);
this.updateCheckHtml();
this.updateParent();
this.layer.checked=false;
}
};
YAHOO.widget.RadioNode.prototype.getNodeHtml=function(){
var sb=new Array();
sb[sb.length]="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
sb[sb.length]="<tr>";
for(i=0;i<this.depth;++i){
sb[sb.length]="<td class=\""+this.getDepthStyle(i)+"\">&nbsp;</td>";
}
sb[sb.length]="<td";
sb[sb.length]=" id=\""+this.getToggleElId()+"\"";
sb[sb.length]=" class=\""+this.getStyle()+"\"";
if(this.hasChildren(true)){
sb[sb.length]=" onmouseover=\"this.className=";
sb[sb.length]="YAHOO.widget.TreeView.getNode('";
sb[sb.length]=this.tree.id+"',"+this.index+").getHoverStyle()\"";
sb[sb.length]=" onmouseout=\"this.className=";
sb[sb.length]="YAHOO.widget.TreeView.getNode('";
sb[sb.length]=this.tree.id+"',"+this.index+").getStyle()\"";
}
sb[sb.length]=" onclick=\"javascript:"+this.getToggleLink()+"\">&nbsp;";
sb[sb.length]="</td>";
sb[sb.length]="<td";
sb[sb.length]=" id=\""+this.getCheckElId()+"\"";
sb[sb.length]=" class=\""+this.getCheckStyle()+"\"";
sb[sb.length]=" onclick=\"javascript:"+this.getCheckLink()+"\">";
sb[sb.length]="&nbsp;</td>";
sb[sb.length]="<td>";
sb[sb.length]="<a";
sb[sb.length]=" id=\""+this.labelElId+"\"";
sb[sb.length]=" class=\""+this.labelStyle+"\"";
sb[sb.length]=" href=\""+this.href+"\"";
sb[sb.length]=" target=\""+this.target+"\"";
if(this.hasChildren(true)){
sb[sb.length]=" onmouseover=\"document.getElementById('";
sb[sb.length]=this.getToggleElId()+"').className=";
sb[sb.length]="YAHOO.widget.TreeView.getNode('";
sb[sb.length]=this.tree.id+"',"+this.index+").getHoverStyle()\"";
sb[sb.length]=" onmouseout=\"document.getElementById('";
sb[sb.length]=this.getToggleElId()+"').className=";
sb[sb.length]="YAHOO.widget.TreeView.getNode('";
sb[sb.length]=this.tree.id+"',"+this.index+").getStyle()\"";
}
sb[sb.length]=" >";
sb[sb.length]=this.label;
sb[sb.length]="</a>";
sb[sb.length]="</td>";
sb[sb.length]="</tr>";
sb[sb.length]="</table>";
return sb.join("");
};


