/**
* @constructor
*/
function XUICheckbox() {
}
XUICheckbox.prototype = {
//事件
/**
* 点击事件
* @eventname XUI_CHECKBOX_CLICK
* @eventid 0x00001006
*/
/**
* 状态改变事件
* @eventname XUI_CHECKBOX_STATECHANGE
* @eventid 0x00001007
*/
//接口
/**
* 设置选中状态
* @param {Boolean} bChecked 选中状态
*/
SetCheckedState:function (bChecked) {
},
/**
* 获取选中状态
* @return {Boolean}
*/
IsCheckedState:function () {
},
/**
* 背景颜色绘制
* @param {Boolean} bDrawColor
* @property {Boolean} BgDrawColor false
*/
SetBgDrawColor:function (bDrawColor) {
},
/**
* 背景是否以颜色绘制
* @return {Boolean} 是否使用颜色绘制
*/
IsBgDrawColor:function () {
},
/**
* 未选中状态背景色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strColor 颜色
*/
SetUncheckedBgColor:function (nState,strColor) {
},
/**
* 获取未选中正常状态背景色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetUncheckedBgColor:function (nState) {
},
/**
* 未选中背景颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedNorBgColor "0xff122756"
*/
SetUncheckedNorBgColor:function (strColor) {
},
/**
* 获取正常背景颜色
* @return {String}
*/
GetUncheckedNorBgColor:function () {
},
/**
* 未选中高亮背景颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedHotBgColor "0xff1d3a76"
*/
SetUncheckedHotBgColor:function (strColor) {
},
/**
* 获取未选中高亮背景颜色
* @return {String}
*/
GetUncheckedHotBgColor:function () {
},
/**
* 未选中按下背景颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedPressBgColor "0xff1d3a76"
*/
SetUncheckedPressBgColor:function (strColor) {
},
/**
* 获取未选中按下背景颜色
* @return {String}
*/
GetUncheckedPressBgColor:function () {
},
/**
* 选中状态背景色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strColor 颜色
*/
SetCheckedBgColor:function (nState,strColor) {
},
/**
* 获取选中状态背景色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetCheckedBgColor:function (nState) {
},
/**
* 选中背景颜色
* @param {String} strColor 颜色
* @property {Color} CheckedNorBgColor "0xff0d214a"
*/
SetCheckedNorBgColor:function (strColor) {
},
/**
* 获取正常背景颜色
* @return {String}
*/
GetCheckedNorBgColor:function () {
},
/**
* 未选中高亮背景颜色
* @param {String} strColor 颜色
* @property {Color} CheckedHotBgColor "0xff1d3a76"
*/
SetCheckedHotBgColor:function (strColor) {
},
/**
* 获取未选中高亮背景颜色
* @return {String}
*/
GetCheckedHotBgColor:function () {
},
/**
* 选中按下背景颜色
* @param {String} strColor 颜色
* @property {Color} CheckedPressBgColor "0xff1d3a76"
*/
SetCheckedPressBgColor:function (strColor) {
},
/**
* 获取未选中按下背景颜色
* @return {String}
*/
GetCheckedPressBgColor:function () {
},
/**
* 未选中状态背景图片
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strPath 图片地址
*/
SetUncheckedBgImage:function (nState,strPath) {
},
/**
* 获取未选中状态背景图片
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetUncheckedBgImage:function (nState) {
},
/**
* 未选中背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedNorBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetUncheckedNorBgImage:function (strImage) {
},
/**
* 获取未选中正常背景图片
* @return {String}
*/
GetUncheckedNorBgImage:function () {
},
/**
* 未选中高亮背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedHotBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetUncheckedHotBgImage:function (strImage) {
},
/**
* 获取未选中高亮背景图片
* @return {String}
*/
GetUncheckedHotBgImage:function () {
},
/**
* 未选中按下背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedPressBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetUncheckedPressBgImage:function (strImage) {
},
/**
* 获取未选中按下背景图片
* @return {String}
*/
GetUncheckedPressBgImage:function () {
},
/**
* 选中状态背景图
* @param {Number} nState 状态 1、normal 2、hot 3、press
* @param {ImageProp} strPath 图片地址
*/
SetCheckedBgImage:function (nState,strPath) {
},
/**
* 获取选中状态背景图
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetCheckedBgImage:function (nState) {
},
/**
* 选中背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedNorBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetCheckedNorBgImage:function (strImage) {
},
/**
* 获取正常背景图片
* @return {String}
*/
GetCheckedNorBgImage:function () {
},
/**
* 选中高亮背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedHotBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetCheckedHotBgImage:function (strImage) {
},
/**
* 获取高亮背景图片
* @return {String}
*/
GetCheckedHotBgImage:function () {
},
/**
* 选中按下背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedPressBgImage "XUICheckbox/images/checkbox_bg.png"
*/
SetCheckedPressBgImage:function (strImage) {
},
/**
* 获取选中按下背景图
* @return {String}
*/
GetCheckedPressBgImage:function () {
},
/**
* 显示图标
* @param {Boolean} bVisible 是否显示
* @property {Boolean} IconVisible true
*/
SetIconVisible:function (bVisible) {
},
/**
* 图标是否显示
* @return {Boolean}
*/
IsIconVisible:function () {
},
/**
* 未选中状态图标色
* @param {Number} nState 0: normal; 1: hot; 2: press
* @param {String} strColor 颜色
*/
SetUncheckedIconColor:function (nState,strColor) {
},
/**
* 获取未选中状态图标色
* @param {Number} nState 状态 0: normal; 1: hot; 2: press
* @return {String}
*/
GetUncheckedIconColor:function (nState) {
},
/**
* 未选中正常图标颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedNorIconColor "0xff122756"
*/
SetUncheckedNorIconColor:function (strColor) {
},
/**
* 获取正常图标颜色
* @return {String}
*/
GetUncheckedNorIconColor:function () {
},
/**
* 高亮图标颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedHotIconColor "0xff1d3a76"
*/
SetUncheckedHotIconColor:function (strColor) {
},
/**
* 获取高亮图标颜色
* @return {String}
*/
GetUncheckedHotIconColor:function () {
},
/**
* 按下图标颜色
* @param {String} strColor 颜色
* @property {Color} UncheckedPressIconColor "0xff1d3a76"
*/
SetUncheckedPressIconColor:function (strColor) {
},
/**
* 获取按下图标颜色
* @return {String}
*/
GetUncheckedPressIconColor:function () {
},
/**
* 选中状态图标色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strColor 颜色
*/
SetCheckedIconColor:function (nState,strColor) {
},
/**
* 获取选中状态图标色
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetCheckedIconColor:function (nState) {
},
/**
* 选中图标颜色
* @param {String} strColor 颜色
* @property {Color} CheckedNorIconColor "0xff122756"
*/
SetCheckedNorIconColor:function (strColor) {
},
/**
* 获取选中正常图标颜色
* @return {String}
*/
GetCheckedNorIconColor:function () {
},
/**
* 选中高亮图标色
* @param {String} strColor 颜色
* @property {Color} CheckedHotIconColor "0xff1d3a76"
*/
SetCheckedHotIconColor:function (strColor) {
},
/**
* 获取选中高亮图标色
* @return {String}
*/
GetCheckedHotIconColor:function () {
},
/**
* 选中按下图标色
* @param {String} strColor 颜色
* @property {Color} CheckedPressIconColor "0xff1d3a76"
*/
SetCheckedPressIconColor:function (strColor) {
},
/**
* 获取选中按下图标色
* @return {String}
*/
GetCheckedPressIconColor:function () {
},
/**
* 未选中状态图标图
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strPath 图片地址
*/
SetUncheckedIconImage:function (nState,strPath) {
},
/**
* 获取未选中状态图标图
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetUncheckedIconImage:function (nState) {
},
/**
* 未选中正常图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedNorIconImage "XUICheckbox/images/checkboxoff_nor.png"
*/
SetUncheckedNorIconImage:function (strImage) {
},
/**
* 获取未选中正常图标图
* @return {String}
*/
GetUncheckedNorIconImage:function () {
},
/**
* 未选中高亮图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedHotIconImage "XUICheckbox/images/checkboxoff_hot.png"
*/
SetUncheckedHotIconImage:function (strImage) {
},
/**
* 获取未选中高亮图标图片
* @return {String}
*/
GetUncheckedHotIconImage:function () {
},
/**
* 未选中按下图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} UncheckedPressIconImage "XUICheckbox/images/checkboxoff_pre.png"
*/
SetUncheckedPressIconImage:function (strImage) {
},
/**
* 获取未选中按下图标图片
* @return {String}
*/
GetUncheckedPressIconImage:function () {
},
/**
* 选中状态图标图
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @param {String} strPath 图片地址
*/
SetCheckedIconImage:function (nState,strPath) {
},
/**
* 获取选中状态图标
* @param {Number} nState 状态 0、normal 1、hot 2、press
* @return {String}
*/
GetCheckedIconImage:function (nState) {
},
/**
* 选中图标图
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedNorIconImage "XUICheckbox/images/checkboxon_nor.png"
*/
SetCheckedNorIconImage:function (strImage) {
},
/**
* 获取选中正常图标图
* @return {String}
*/
GetCheckedNorIconImage:function () {
},
/**
* 选中高亮图标图
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedHotIconImage "XUICheckbox/images/checkboxon_hot.png"
*/
SetCheckedHotIconImage:function (strImage) {
},
/**
* 获取选中高亮图标图
* @return {String}
*/
GetCheckedHotIconImage:function () {
},
/**
* 选中按下图标图
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} CheckedPressIconImage "XUICheckbox/images/checkboxon_pre.png"
*/
SetCheckedPressIconImage:function (strImage) {
},
/**
* 获取选中按下图标图
* @return {String}
*/
GetCheckedPressIconImage:function () {
},
/**
* 图标颜色绘制
* @param {Boolean} bDrawColor 颜色
* @property {Boolean} IconDrawColor false
*/
SetIconDrawColor:function (bDrawColor) {
},
/**
* 图标是否颜色绘制
* @return {Boolean}
*/
IsIconDrawColor:function () {
},
/**
* 图标大小
* @param {Number} nWidth 宽度
* @param {Number} nHeight 高度
* @property {Collection} IconSize [20,20]
*/
SetIconSize:function (nWidth,nHeight) {
},
/**
* 获取图标宽度
* @return {Number}
*/
GetIconWidth:function () {
},
/**
* 获取图标高度
* @return {Number}
*/
GetIconHeight:function () {
},
/**
* 图标位移
* @param {Number} nHorValue 水平位移
* @param {Number} nVerValue 竖直位移
* @property {Collection} IconOffsetValue [-1,-1]
*/
SetIconOffsetValue:function (nHorValue,nVerValue) {
},
/**
* 获取图标位移
* @param {Boolean} bHorz 是否水平方向
* @return {Boolean}
*/
GetIconOffset:function (bHorz) {
},
/**
* 文字
* @param {String} strText 文本内容
* @property {String} Text "XUICheckbox"
*/
SetText:function (strText) {
},
/**
* 获取文本
* @return {String} 文本
*/
GetText:function () {
},
/**
* 文字大小
* @param {Number} nFontSize 文字大小
* @property {Number} TextSize 20
*/
SetTextSize:function (nFontSize) {
},
/**
* 获取文字大小
* @return {Number}
*/
GetTextSize:function () {
},
/**
* 文字颜色
* @param {Number} nState 状态 0: 未选中 1:选中 2:禁用
* @param {String} strColor 文字颜色
*/
SetTextColor:function (nState,strColor) {
},
/**
* 获取文字颜色
* @param {Number} nState 状态 0: 未选中 1:选中 2:禁用
*/
GetTextColor:function (nState) {
},
/**
* 未选中正常文字颜色
* @param {String} strColor 文字颜色
* @property {Color} UncheckedTextColor "0xffffffff"
*/
SetUncheckedTextColor:function (strColor) {
},
/**
* 选中文字颜色
* @param {String} strColor 文字颜色
* @property {Color} CheckedTextColor "0xffffffff"
*/
SetCheckedTextColor:function (strColor) {
},
/**
* 禁用文字颜色
* @param {String} strColor 文字颜色
* @property {Color} DisabledTextColor "0xffffffff"
*/
SetDisabledTextColor:function (strColor) {
},
/**
* 获取禁用文字颜色
* @return {String} 禁用文字颜色
*/
GetDisabledTextColor:function () {
},
/**
* 文本位移
* @param {Number} nHorValue 水平位移
* @param {Number} nVerValue 竖直位移
* @property {Collection} TextOffValue [-1,-1]
*/
SetTextOffsetValue:function (nHorValue,nVerValue) {
},
}