/**
* @constructor
*/
function XUIRadiobox() {
}
XUIRadiobox.prototype = {
//事件
/**
* 选中事件
* @eventname XUI_RADIOBOX_SELECTED
* @eventid 0x00001011
*/
/**
* 失去选中事件
* @eventname XUI_RADIOBOX_UNSELECTED
* @eventid 0x00001012
*/
//接口
/**
* 设置组Id
* @param {Number} nId 组Id
* @property {Number} GroupId 0
*/
SetGroupId:function (nId) {
},
/**
* 获得组Id
* @return {Number} 组Id
*/
GetGroupId:function () {
},
/**
* 设置选中
* @param {Boolean} bSelect 是否选中
*/
SetSelected:function (bSelect) {
},
/**
* 是否选中
* @return {Boolean} 是否选中
*/
IsSelected:function () {
},
/**
* 背景以颜色绘制
* @param {Boolean} bDrawColor
* @property {Boolean} BgDrawColor true
*/
SetBgDrawColor:function (bDrawColor) {
},
/**
* 背景是否以颜色绘制
* @return {Boolean} 是否使用颜色绘制
*/
IsBgDrawColor:function () {
},
/**
* 设置背景颜色
* @param {Number} nState 状态 0: all; 1: normal; 2: hot; 3: selected; 4: disabled
* @param {String} strColor 颜色
*/
SetBgColor:function (nState,strColor) {
},
/**
* 正常背景颜色
* @param {String} strColor 颜色
* @property {Color} NormalBgColor "0x66ff0000"
*/
SetNormalBgColor:function (strColor) {
},
/**
* 获取正常背景颜色
* @return {String}
*/
GetNormalBgColor:function () {
},
/**
* 高亮背景颜色
* @param {String} strColor 颜色
* @property {Color} HotBgColor "0x6600ff00"
*/
SetHotBgColor:function (strColor) {
},
/**
* 获取高亮背景颜色
* @return {String}
*/
GetHotBgColor:function () {
},
/**
* 选中背景颜色
* @param {String} strColor 颜色
* @property {Color} SelectedBgColor "0x660000ff"
*/
SetSelectedBgColor:function (strColor) {
},
/**
* 获取选中背景颜色
* @return {String}
*/
GetSelectedBgColor:function () {
},
/**
* 禁用背景颜色
* @param {String} strColor 颜色
* @property {Color} DisabledBgColor "0x66122756"
*/
SetDisabledBgColor:function (strColor) {
},
/**
* 获取禁用背景颜色
* @return {String}
*/
GetDisabledBgColor:function () {
},
/**
* 设置正常状态背景图片
* @param {Number} nState 状态 0: all; 1: normal; 2: hot; 3: selected; 4: disabled
* @param {ImageProp} strPath 图片地址
*/
SetBgImage:function (nState,strPath) {
},
/**
* 正常背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} NormalBgImage "XUIRadiobox/images/btn_bg_normal.png"
*/
SetNormalBgImage:function (strImage) {
},
/**
* 获取正常背景图片
* @return {String}
*/
GetNormalBgImage:function () {
},
/**
* 高亮背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} HotBgImage "XUIRadiobox/images/btn_bg_normal.png"
*/
SetHotBgImage:function (strImage) {
},
/**
* 获取高亮背景图片
* @return {String}
*/
GetHotBgImage:function () {
},
/**
* 选中背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} SelectedBgImage "XUIRadiobox/images/btn_bg_selected.png"
*/
SetSelectedBgImage:function (strImage) {
},
/**
* 获取选中背景图片
* @return {String}
*/
GetSelectedBgImage:function () {
},
/**
* 禁用背景图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} DisabledBgImage "XUIRadiobox/images/btn_bg_normal.png"
*/
SetDisabledBgImage:function (strImage) {
},
/**
* 获取禁用背景图片
* @return {String}
*/
GetDisabledBgImage:function () {
},
/**
* 显示图标
* @param {Boolean} bVisible 是否显示
* @property {Boolean} IconVisible true
*/
SetIconVisible:function (bVisible) {
},
/**
* 图标是否显示
* @return {Boolean}
*/
IsIconVisible:function () {
},
/**
* 图标以颜色绘制
* @param {Boolean} bDrawColor 颜色
* @property {Boolean} IconDrawColor true
*/
SetIconDrawColor:function (bDrawColor) {
},
/**
* 图标是否以颜色绘制
* @return {Boolean} 是否使用颜色绘制
*/
IsIconDrawColor:function () {
},
/**
* 设置正常状态图标颜色
* @param {Number} nState 状态 0: all; 1: normal; 2: hot; 3: selected; 4: disabled
* @param {String} strColor 颜色
*/
SetIconColor:function (nState,strColor) {
},
/**
* 正常图标颜色
* @param {String} strColor 颜色
* @property {Color} NormalIconColor "0xffff0000"
*/
SetNormalIconColor:function (strColor) {
},
/**
* 获取正常图标颜色
* @return {String}
*/
GetNormalIconColor:function () {
},
/**
* 高亮图标颜色
* @param {String} strColor 颜色
* @property {Color} HotIconColor "0xff00ff00"
*/
SetHotIconColor:function (strColor) {
},
/**
* 获取高亮图标颜色
* @return {String}
*/
GetHotIconColor:function () {
},
/**
* 选中图标颜色
* @param {String} strColor 颜色
* @property {Color} SelectedIconColor "0xff0000ff"
*/
SetSelectedIconColor:function (strColor) {
},
/**
* 获取选中图标颜色
* @return {String}
*/
GetSelectedIconColor:function () {
},
/**
* 禁用图标颜色
* @param {String} strColor 颜色
* @property {Color} DisabledIconColor "0x66aa2756"
*/
SetDisabledIconColor:function (strColor) {
},
/**
* 获取禁用图标颜色
* @return {String}
*/
GetDisabledIconColor:function () {
},
/**
* 设置图标图片
* @param {Number} nState 状态 0: all; 1: normal; 2: hot; 3: selected; 4: disabled
* @param {String} strPath 图片地址
*/
SetIconImage:function (nState,strPath) {
},
/**
* 正常图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} NormalIconImage "XUIRadiobox/images/icon_kongzhitai_normal.png"
*/
SetNormalIconImage:function (strImage) {
},
/**
* 获取正常图标图片
* @return {String}
*/
GetNormalIconImage:function () {
},
/**
* 高亮图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} HotIconImage "XUIRadiobox/images/icon_kongzhitai_normal.png"
*/
SetHotIconImage:function (strImage) {
},
/**
* 获取高亮图标图片
* @return {String}
*/
GetHotIconImage:function () {
},
/**
* 选中图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} SelectedIconImage "XUIRadiobox/images/icon_kongzhitai_normal.png"
*/
SetSelectedIconImage:function (strImage) {
},
/**
* 获取选中图标图片
* @return {String}
*/
GetSelectedIconImage:function () {
},
/**
* 禁用图标图片
* @param {ImageProp} strImage 图片地址
* @property {ImageProp} DisabledIconImage "XUIRadiobox/images/icon_kongzhitai_normal.png"
*/
SetDisabledIconImage:function (strImage) {
},
/**
* 获取禁用图标图片
* @return {String}
*/
GetDisabledIconImage:function () {
},
/**
* 图标大小
* @param {Number} nWidth 宽度
* @param {Number} nHeight 高度
* @property {Collection} IconSize [22,22]
*/
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) {
},
/**
* 获取图标位移
* @return {Array}
*/
GetIconOffsetValue:function () {
},
/**
* 文字
* @param {String} strText 文本内容
* @property {String} Text "XUIRadiobox"
*/
SetText:function (strText) {
},
/**
* 获取文本
* @return {String} 文本
*/
GetText:function () {
},
/**
* 文本竖直排列
* @param {Boolean} bVertical 是否竖直排列
* @property {Boolean} TextVertical false
*/
SetTextVertical:function (bVertical) {
},
/**
* 文字大小
* @param {Number} nFontSize 文字大小
* @property {Number} TextSize 20
*/
SetTextSize:function (nFontSize) {
},
/**
* 获取文字大小
* @return {Number}
*/
GetTextSize:function () {
},
/**
* 设置文字颜色
* @param {Number} nState 状态 0: all; 1: normal; 2: hot; 3: selected; 4: disabled
* @param {String} strColor 文字颜色
*/
SetTextColor:function (nState,strColor) {
},
/**
* 正常文字颜色
* @param {String} strColor 文字颜色
* @property {Color} NormalTextColor "0xffff0000"
*/
SetNormalTextColor:function (strColor) {
},
/**
* 获取正常文字颜色
* @return {String}
*/
GetNormalTextColor:function () {
},
/**
* 高亮文字颜色
* @param {String} strColor 文字颜色
* @property {Color} HotTextColor "0xff00ff00"
*/
SetHotTextColor:function (strColor) {
},
/**
* 获取高亮文字颜色
* @return {String}
*/
GetHotTextColor:function () {
},
/**
* 选中文字颜色
* @param {String} strColor 文字颜色
* @property {Color} SelectedTextColor "0xff0000ff"
*/
SetSelectedTextColor:function (strColor) {
},
/**
* 获取选中文字颜色
* @return {String}
*/
GetSelectedTextColor:function () {
},
/**
* 禁用文字颜色
* @param {String} strColor 文字颜色
* @property {Color} DisabledTextColor "0x66ffffff"
*/
SetDisabledTextColor:function (strColor) {
},
/**
* 获取禁用文字颜色
* @return {String}
*/
GetDisabledTextColor:function () {
},
/**
* 文本位移
* @param {Number} nHorValue 水平位移
* @param {Number} nVerValue 竖直位移
* @property {Collection} TextOffValue [-1,-1]
*/
SetTextOffsetValue:function (nHorValue,nVerValue) {
},
/**
* 获取文本位移
* @return {Array}
*/
GetTextOffsetValue:function () {
},
/**
* 设置禁用
* @param {Boolean} bDisabled
* @property {Boolean} Disable false
*/
SetDisable:function (bDisabled) {
},
}