src/aria/widgets/controllers/MultiSelectController.js
function (value) {
            var report = new ariaWidgetsControllersReportsDropDownControllerReport();
            var dataModel = this._dataModel;
            if (value === null) {
                report.ok = true;
                dataModel.value = null;
                dataModel.text = '';
            } else {
                if (!ariaUtilsJson.equals(value, dataModel.value)) {
                    // Only update the data-model if there has been a change, otherwise onchange is raised
                    ariaUtilsJson.setValue(dataModel, 'selectedValues', value);
                    dataModel.value = value;

                } else {
                    if (!ariaUtilsJson.equals(dataModel.selectedValues, dataModel.value)) {
                        // Only update the data-model if there has been a change, otherwise onchange is raised
                        value = dataModel.selectedValues;
                        dataModel.value = value;
                    }
                }
                report.ok = true;
                var text = this._getDisplayValue(value);
                dataModel.text = text;
            }
            if (report.ok) {
                report.text = dataModel.text;
                report.value = this._getValue(dataModel.text, dataModel.value);
            }
            return report;
        }
function (value) {
            var report = new ariaWidgetsControllersReportsDropDownControllerReport();
            var dataModel = this._dataModel;
            if (value === null) {
                report.ok = true;
                dataModel.value = null;
                dataModel.text = '';
            } else {
                if (!ariaUtilsJson.equals(value, dataModel.value)) {
                    // Only update the data-model if there has been a change, otherwise onchange is raised
                    ariaUtilsJson.setValue(dataModel, 'selectedValues', value);
                    dataModel.value = value;

                } else {
                    if (!ariaUtilsJson.equals(dataModel.selectedValues, dataModel.value)) {
                        // Only update the data-model if there has been a change, otherwise onchange is raised
                        value = dataModel.selectedValues;
                        dataModel.value = value;
                    }
                }
                report.ok = true;
                var text = this._getDisplayValue(value);
                dataModel.text = text;
            }
            if (report.ok) {
                report.text = dataModel.text;
                report.value = this._getValue(dataModel.text, dataModel.value);
            }
            return report;
        }
function ( value ) { var report = new ariaWidgetsControllersReportsDropDownControllerReport ( ) ; var dataModel = this . _dataModel ; if ( value === null ) { report . ok = true ; dataModel . value = null ; dataModel . text = '' ; } else { if ( ! ariaUtilsJson . equals ( value , dataModel . value ) ) { // Only update the data-model if there has been a change, otherwise onchange is raised ariaUtilsJson . setValue ( dataModel , 'selectedValues' , value ) ; dataModel . value = value ; } else { if ( ! ariaUtilsJson . equals ( dataModel . selectedValues , dataModel . value ) ) { // Only update the data-model if there has been a change, otherwise onchange is raised value = dataModel . selectedValues ; dataModel . value = value ; } } report . ok = true ; var text = this . _getDisplayValue ( value ) ; dataModel . text = text ; } if ( report . ok ) { report . text = dataModel . text ; report . value = this . _getValue ( dataModel . text , dataModel . value ) ; } return report ; }
override DropDownListController.checkValue
@param {String} value
@return {aria.widgets.controllers.reports.DropDownControllerReport}
override DropDownListController . checkValue