|
|
@ -881,8 +881,8 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
return this.options.text; |
|
|
|
return this.options.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
_setEnable: function (b) { |
|
|
|
BI.BasicButton.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.BasicButton.superclass._setEnable.apply(this, arguments); |
|
|
|
if (!b) { |
|
|
|
if (!b) { |
|
|
|
if (this.options.shadow) { |
|
|
|
if (this.options.shadow) { |
|
|
|
this.$mask && this.$mask.setVisible(false); |
|
|
|
this.$mask && this.$mask.setVisible(false); |
|
|
@ -1166,13 +1166,6 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
|
|
|
|
BI.ButtonGroup.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
|
|
|
|
item.setEnable(b); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setNotSelectedValue: function (v) { |
|
|
|
setNotSelectedValue: function (v) { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
@ -3192,10 +3185,8 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
this.combo.populate.apply(this.combo, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (arg) { |
|
|
|
_setEnable: function (arg) { |
|
|
|
BI.Combo.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.Combo.superclass._setEnable.apply(this, arguments); |
|
|
|
this.combo && this.combo.setEnable(arg); |
|
|
|
|
|
|
|
this.popupView && this.popupView.setEnable(arg); |
|
|
|
|
|
|
|
!arg && this.isViewVisible() && this._hideView(); |
|
|
|
!arg && this.isViewVisible() && this._hideView(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -3304,7 +3295,7 @@ BI.Expander = BI.inherit(BI.Widget, { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Expander.EVENT_EXPAND); |
|
|
|
self.fireEvent(BI.Expander.EVENT_EXPAND); |
|
|
|
} |
|
|
|
} |
|
|
|
if(type === BI.Events.COLLAPSE) { |
|
|
|
if (type === BI.Events.COLLAPSE) { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.Expander.EVENT_COLLAPSE); |
|
|
|
self.fireEvent(BI.Expander.EVENT_COLLAPSE); |
|
|
|
} |
|
|
|
} |
|
|
@ -3461,11 +3452,9 @@ BI.Expander = BI.inherit(BI.Widget, { |
|
|
|
this.expander.populate.apply(this.expander, arguments); |
|
|
|
this.expander.populate.apply(this.expander, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (arg) { |
|
|
|
_setEnable: function (arg) { |
|
|
|
BI.Expander.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.Expander.superclass._setEnable.apply(this, arguments); |
|
|
|
this.expander && this.expander.setEnable(arg); |
|
|
|
!arg && this.isViewVisible() && this._hideView(); |
|
|
|
this.popupView && this.popupView.setEnable(arg); |
|
|
|
|
|
|
|
!arg && this._hideView(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -3625,11 +3614,6 @@ BI.ComboGroup = BI.inherit(BI.Widget, { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
|
|
|
|
BI.ComboGroup.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.combo && this.combo.setEnable(b); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.combo.getValue(); |
|
|
|
return this.combo.getValue(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -3920,10 +3904,6 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
this.button_group.populate.apply(this.button_group, arguments); |
|
|
|
this.button_group.populate.apply(this.button_group, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (v) { |
|
|
|
|
|
|
|
this.button_group.setEnable(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doBehavior: function () { |
|
|
|
doBehavior: function () { |
|
|
|
this.button_group.doBehavior.apply(this.button_group, arguments); |
|
|
|
this.button_group.doBehavior.apply(this.button_group, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -4629,11 +4609,9 @@ BI.Switcher = BI.inherit(BI.Widget, { |
|
|
|
this.switcher.populate.apply(this.switcher, arguments); |
|
|
|
this.switcher.populate.apply(this.switcher, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (arg) { |
|
|
|
_setEnable: function (arg) { |
|
|
|
BI.Switcher.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.Switcher.superclass._setEnable.apply(this, arguments); |
|
|
|
this.switcher && this.switcher.setEnable(arg); |
|
|
|
!arg && this.isViewVisible() && this._hideView(); |
|
|
|
this.popupView && this.popupView.setEnable(arg); |
|
|
|
|
|
|
|
!arg && this._hideView(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -15281,11 +15259,6 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
this.view.element.css({"max-height": (h - tbHeight - tabHeight - toolHeight - 2) + "px"}) |
|
|
|
this.view.element.css({"max-height": (h - tbHeight - tabHeight - toolHeight - 2) + "px"}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (arg) { |
|
|
|
|
|
|
|
BI.PopupView.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.view && this.view.setEnable(arg); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (selectedValues) { |
|
|
|
setValue: function (selectedValues) { |
|
|
|
this.tab && this.tab.setValue(selectedValues); |
|
|
|
this.tab && this.tab.setValue(selectedValues); |
|
|
|
this.button_group.setValue(selectedValues); |
|
|
|
this.button_group.setValue(selectedValues); |
|
|
@ -16092,12 +16065,6 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
|
|
|
|
BI.Button.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
// this.text.setEnable(b);
|
|
|
|
|
|
|
|
// this.icon && this.icon.setEnable(b);
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
doRedMark: function () { |
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -17470,8 +17437,8 @@ BI.CodeEditor = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
_setEnable: function (b) { |
|
|
|
BI.CodeEditor.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.CodeEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
this.editor.setOption("readOnly", b === true ? false : "nocursor") |
|
|
|
this.editor.setOption("readOnly", b === true ? false : "nocursor") |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -17842,12 +17809,6 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
isValid: function () { |
|
|
|
isValid: function () { |
|
|
|
return this.editor.isValid(); |
|
|
|
return this.editor.isValid(); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
|
|
|
|
BI.Editor.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.editor && this.editor.setEnable(b); |
|
|
|
|
|
|
|
this.watermark && this.watermark.setEnable(b); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Editor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Editor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -17950,11 +17911,6 @@ BI.MultifileEditor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
reset: function () { |
|
|
|
reset: function () { |
|
|
|
this.file.reset(); |
|
|
|
this.file.reset(); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
|
|
|
|
BI.MultiFile.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.file.setEnable(enable); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.MultifileEditor.EVENT_CHANGE = "MultifileEditor.EVENT_CHANGE"; |
|
|
|
BI.MultifileEditor.EVENT_CHANGE = "MultifileEditor.EVENT_CHANGE"; |
|
|
@ -18117,12 +18073,6 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
BI.TextAreaEditor.superclass.setValid.apply(this, arguments); |
|
|
|
BI.TextAreaEditor.superclass.setValid.apply(this, arguments); |
|
|
|
this.content.setValid(b); |
|
|
|
this.content.setValid(b); |
|
|
|
this.watermark && this.watermark.setValid(b); |
|
|
|
this.watermark && this.watermark.setValid(b); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
|
|
|
|
BI.TextAreaEditor.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.content.setEnable(b); |
|
|
|
|
|
|
|
this.watermark && this.watermark.setEnable(b); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -18857,8 +18807,8 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
this.wrap.attachNum = 0; |
|
|
|
this.wrap.attachNum = 0; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
_setEnable: function (enable) { |
|
|
|
BI.File.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.File.superclass._setEnable.apply(this, arguments); |
|
|
|
if (enable === true) { |
|
|
|
if (enable === true) { |
|
|
|
this.element.attr("disabled", "disabled"); |
|
|
|
this.element.attr("disabled", "disabled"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -19130,8 +19080,8 @@ BI.Input = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (b) { |
|
|
|
_setEnable: function (b) { |
|
|
|
BI.Input.superclass.setEnable.apply(this, [b]); |
|
|
|
BI.Input.superclass._setEnable.apply(this, [b]); |
|
|
|
this.element[0].disabled = !b; |
|
|
|
this.element[0].disabled = !b; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -32563,11 +32513,6 @@ BI.CustomTree = BI.inherit(BI.Widget, { |
|
|
|
this.initTree(this.options.items); |
|
|
|
this.initTree(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (v) { |
|
|
|
|
|
|
|
BI.CustomTree.superclass.setEnable.apply(this, arguments); |
|
|
|
|
|
|
|
this.tree.setEnable(v) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_formatItems: function (nodes) { |
|
|
|
_formatItems: function (nodes) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
nodes = BI.Tree.transformToTreeFormat(nodes); |
|
|
|
nodes = BI.Tree.transformToTreeFormat(nodes); |
|
|
|