function(values) {
        this.getSameGroupFields().forEach(function(field) {
            field.setChecked((values.indexOf(field.getValue()) !== -1));
        });

        return this;
    }
function(values) {
        this.getSameGroupFields().forEach(function(field) {
            field.setChecked((values.indexOf(field.getValue()) !== -1));
        });

        return this;
    }
function ( values ) { this . getSameGroupFields ( ) . forEach ( function ( field ) { field . setChecked ( ( values . indexOf ( field . getValue ( ) ) !== - 1 ) ) ; } ) ; return this ; }
Set the status of all matched checkboxes in the same group to checked.
@param {Array} values An array of values.
@return {Ext.field.Checkbox} This checkbox.
Set the status of all matched checkboxes in the same group to checked .