function populateCredentialsInputs(node, credDef, credData, prefix) {
        var cred;
        for (cred in credDef) {
            if (credDef.hasOwnProperty(cred)) {
                if (credDef[cred].type == 'password') {
                    if (credData[cred]) {
                        $('#' + prefix + '-' + cred).val(credData[cred]);
                    } else if (credData['has_' + cred]) {
                        $('#' + prefix + '-' + cred).val('__PWRD__');
                    }
                    else {
                        $('#' + prefix + '-' + cred).val('');
                    }
                } else {
                    preparePropertyEditor(credData, cred, prefix, credDef);
                }
                attachPropertyChangeHandler(node, credDef, cred, prefix);
            }
        }
    }
/**
     * Assign the value to each credential field
     * @param node
     * @param credDef
     * @param credData
     * @param prefix
     */
Assign the value to each credential field
@param node
@param credDef
@param credData
@param prefix
Assign the value to each credential field @param node @param credDef @param credData @param prefix
function populateCredentialsInputs(node, credDef, credData, prefix) {
        var cred;
        for (cred in credDef) {
            if (credDef.hasOwnProperty(cred)) {
                if (credDef[cred].type == 'password') {
                    if (credData[cred]) {
                        $('#' + prefix + '-' + cred).val(credData[cred]);
                    } else if (credData['has_' + cred]) {
                        $('#' + prefix + '-' + cred).val('__PWRD__');
                    }
                    else {
                        $('#' + prefix + '-' + cred).val('');
                    }
                } else {
                    preparePropertyEditor(credData, cred, prefix, credDef);
                }
                attachPropertyChangeHandler(node, credDef, cred, prefix);
            }
        }
    }
function populateCredentialsInputs ( node , credDef , credData , prefix ) { var cred ; for ( cred in credDef ) { if ( credDef . hasOwnProperty ( cred ) ) { if ( credDef [ cred ] . type == 'password' ) { if ( credData [ cred ] ) { $ ( '#' + prefix + '-' + cred ) . val ( credData [ cred ] ) ; } else if ( credData [ 'has_' + cred ] ) { $ ( '#' + prefix + '-' + cred ) . val ( '__PWRD__' ) ; } else { $ ( '#' + prefix + '-' + cred ) . val ( '' ) ; } } else { preparePropertyEditor ( credData , cred , prefix , credDef ) ; } attachPropertyChangeHandler ( node , credDef , cred , prefix ) ; } } }
Assign the value to each credential field
 @param node
 @param credDef
 @param credData
 @param prefix
Assign the value to each credential field @param node @param credDef @param credData @param prefix