public/javascripts/yui/datatable/datatable.js
function(aColumnDefs) {
    var oColumn, i, len;
    
    if(this._oColumnSet) {
        // First clear _oDynStyles for existing ColumnSet and
        // uregister CellEditor Custom Events
        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
            oColumn = this._oColumnSet.keys[i];
            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
                oColumn.editor.unsubscribeAll();
            }
        }
        
        this._oColumnSet = null;
        this._clearTrTemplateEl();
    }
    
    if(lang.isArray(aColumnDefs)) {
        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
    }
    // Backward compatibility
    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
        this._oColumnSet =  aColumnDefs;
    }

    // Register CellEditor Custom Events
    var allKeys = this._oColumnSet.keys;
    for(i=0, len=allKeys.length; i<len; i++) {
        oColumn = allKeys[i];
        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
        }
    }
}
function(aColumnDefs) {
    var oColumn, i, len;
    
    if(this._oColumnSet) {
        // First clear _oDynStyles for existing ColumnSet and
        // uregister CellEditor Custom Events
        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
            oColumn = this._oColumnSet.keys[i];
            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
                oColumn.editor.unsubscribeAll();
            }
        }
        
        this._oColumnSet = null;
        this._clearTrTemplateEl();
    }
    
    if(lang.isArray(aColumnDefs)) {
        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
    }
    // Backward compatibility
    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
        this._oColumnSet =  aColumnDefs;
    }

    // Register CellEditor Custom Events
    var allKeys = this._oColumnSet.keys;
    for(i=0, len=allKeys.length; i<len; i++) {
        oColumn = allKeys[i];
        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
        }
    }
}
function ( aColumnDefs ) { var oColumn , i , len ; if ( this . _oColumnSet ) { // First clear _oDynStyles for existing ColumnSet and // uregister CellEditor Custom Events for ( i = 0 , len = this . _oColumnSet . keys . length ; i < len ; i ++ ) { oColumn = this . _oColumnSet . keys [ i ] ; DT . _oDynStyles [ "." + this . getId ( ) + "-col-" + oColumn . getSanitizedKey ( ) + " ." + DT . CLASS_LINER ] = undefined ; if ( oColumn . editor && oColumn . editor . unsubscribeAll ) { // Backward compatibility oColumn . editor . unsubscribeAll ( ) ; } } this . _oColumnSet = null ; this . _clearTrTemplateEl ( ) ; } if ( lang . isArray ( aColumnDefs ) ) { this . _oColumnSet = new YAHOO . widget . ColumnSet ( aColumnDefs ) ; } // Backward compatibility else if ( aColumnDefs instanceof YAHOO . widget . ColumnSet ) { this . _oColumnSet = aColumnDefs ; } // Register CellEditor Custom Events var allKeys = this . _oColumnSet . keys ; for ( i = 0 , len = allKeys . length ; i < len ; i ++ ) { oColumn = allKeys [ i ] ; if ( oColumn . editor && oColumn . editor . subscribe ) { // Backward incompatibility oColumn . editor . subscribe ( "showEvent" , this . _onEditorShowEvent , this , true ) ; oColumn . editor . subscribe ( "keydownEvent" , this . _onEditorKeydownEvent , this , true ) ; oColumn . editor . subscribe ( "revertEvent" , this . _onEditorRevertEvent , this , true ) ; oColumn . editor . subscribe ( "saveEvent" , this . _onEditorSaveEvent , this , true ) ; oColumn . editor . subscribe ( "cancelEvent" , this . _onEditorCancelEvent , this , true ) ; oColumn . editor . subscribe ( "blurEvent" , this . _onEditorBlurEvent , this , true ) ; oColumn . editor . subscribe ( "blockEvent" , this . _onEditorBlockEvent , this , true ) ; oColumn . editor . subscribe ( "unblockEvent" , this . _onEditorUnblockEvent , this , true ) ; } } }
Initializes ColumnSet.

@method _initColumnSet
@param aColumnDefs {Object[]} Array of object literal Column definitions.
@private
Initializes ColumnSet .