|
|
@ -357,6 +357,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
if (o.shadow && !o.isShadowShowingOnSelected) { |
|
|
|
if (o.shadow && !o.isShadowShowingOnSelected) { |
|
|
|
this.$mask && this.$mask.setVisible(false); |
|
|
|
this.$mask && this.$mask.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.options.setSelected && this.options.setSelected.call(this, b); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isSelected: function () { |
|
|
|
isSelected: function () { |
|
|
@ -381,12 +382,18 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
setText: function (text) { |
|
|
|
setText: function (text) { |
|
|
|
this.options.text = text; |
|
|
|
this.options.text = text; |
|
|
|
|
|
|
|
this.options.setText && this.options.setText.call(this, text); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getText: function () { |
|
|
|
getText: function () { |
|
|
|
return this.options.text; |
|
|
|
return this.options.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (value) { |
|
|
|
|
|
|
|
BI.BasicButton.superclass.setValue.apply(this, arguments); |
|
|
|
|
|
|
|
this.options.setValue && this.options.setValue.call(this, value); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setEnable: function (enable) { |
|
|
|
_setEnable: function (enable) { |
|
|
|
BI.BasicButton.superclass._setEnable.apply(this, arguments); |
|
|
|
BI.BasicButton.superclass._setEnable.apply(this, arguments); |
|
|
|
if (enable === true) { |
|
|
|
if (enable === true) { |
|
|
@ -404,10 +411,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
empty: function () { |
|
|
|
empty: function () { |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + this.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + this.getName()); |
|
|
|
BI.BasicButton.superclass.empty.apply(this, arguments); |
|
|
|
BI.BasicButton.superclass.empty.apply(this, arguments); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
destroy: function () { |
|
|
|
|
|
|
|
BI.BasicButton.superclass.destroy.apply(this, arguments); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.BasicButton.EVENT_CHANGE = "BasicButton.EVENT_CHANGE"; |
|
|
|
BI.BasicButton.EVENT_CHANGE = "BasicButton.EVENT_CHANGE"; |
|
|
|
|
|
|
|
BI.shortcut("bi.basic_button", BI.BasicButton); |
|
|
|