/**
 * @class Ext.tree.SpecialTreeNodeUI
 * This class provides a special UI implementation for trees, which DO NOT
 * toggle their state on double-clicks.
 */
Ext.tree.NoCollapseTreeNodeUI = Ext.extend(Ext.tree.TreeNodeUI,
{

    // private
    ecClick : function(e)
    {
        if(!this.animating && (this.node.hasChildNodes() || this.node.attributes.expandable))
        {
            if(!(this.node.expanded))
            {
                this.node.toggle();
            }
        }
    },

    // private
    onDblClick : function(e)
    {
        e.preventDefault();
        if(this.disabled)
        {
            return;
        }
        if(this.checkbox)
        {
            this.toggleCheck();
        }
        if(!this.animating && this.node.hasChildNodes())
        {
            if(!(this.node.expanded))
            {
                this.node.toggle();
            }
        }
        this.fireEvent("dblclick", this.node, e);
    }

});
