@ -244,6 +244,12 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
});
},
setAllSelected: function (v) {
BI.each(this.getAllButtons(), function (i, btn) {
(btn.setSelected || btn.setAllSelected).apply(btn, [v]);
getNotSelectedValue: function () {
var v = [];
BI.each(this.buttons, function (i, item) {
@ -150,6 +150,16 @@ BI.ListPane = BI.inherit(BI.Pane, {
this.button_group.setValue.apply(this.button_group, arguments);
if (this.button_group.setAllSelected) {
this.button_group.setAllSelected(v);
} else {
}
getValue: function () {
return this.button_group.getValue.apply(this.button_group, arguments);
@ -113,9 +113,13 @@ BI.SelectList = BI.inherit(BI.Widget, {
if (this.list.setAllSelected) {
this.list.setAllSelected(v);
this.allSelected = !!v;
this.toolbar.setSelected(v);
this.toolbar.setHalfSelected(false);
@ -204,6 +204,11 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
return this.cachGroup.getNotSelectedValue();
this.cachGroup.setAllSelected(v);
setValue: function (value) {
var map = BI.makeObject(value);
this.cachGroup.setValueMap.call(this.cachGroup, map);