XUIJTFACustomList()

Methods

AppendItem()

末尾增加项

Clear()

清空

DeleteItemByIndex(nIndex)

删除一个项
Parameters:
Name Type Description
nIndex Number 索引

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImg() → {String}

获取背景图
Returns:
String

GetBgImgRepeat() → {String}

获取背景图绘制模式
Returns:
String

GetBottomStateImage() → {Array}

获取下方状态图标
Returns:
Array

GetBottomStateImageByIndex(nIndex) → {String}

获取单个下方状态图标
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetCellAmount() → {Number}

获取单元格数
Returns:
Number

GetItemBackgroundImage() → {Array}

获取项背景图
Returns:
Array

GetItemBackgroundImageByIndex(nIndex) → {String}

获取单个项背景图
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetItemHorizontalSpace() → {Number}

获取项水平间距
Returns:
Number

GetItemVerticalSpace() → {Number}

获取项垂直间距
Returns:
Number

GetLeftTextByIndex(nIndex) → {String}

获取单个左侧文本
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetLeftTextColor() → {String}

获取左侧文本颜色
Returns:
String

GetLeftTextColorByIndex(nIndex) → {String}

获取左侧单个文本颜色
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetLeftTextSize() → {Number}

获取左侧文本大小
Returns:
Number

GetPreinstallColumnAmount() → {Number}

获取预设列数
Returns:
Number

GetRightBottomTextByIndex(nIndex) → {String}

获取右侧下方文字
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetRightMessageHorizontalSpace() → {Number}

获取右侧信息水平间距
Returns:
Number

GetRightMessageVerticalSpace() → {Number}

获取右侧信息垂直间距
Returns:
Number

GetRightTextColor() → {String}

获取右侧文字颜色
Returns:
String

GetRightTextColorByIndex(nIndex) → {String}

获取单个右侧文字颜色
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetRightTextSize() → {Number}

获取右侧文字大小
Returns:
Number

GetRightTopTextByIndex(nIndex) → {String}

获取右侧上方文字
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetScrollBarColor() → {Array}

获取滚动条颜色
Returns:
Array

GetScrollBarFacade() → {Array}

获取滚动条样式
Returns:
Array

GetScrollBarOffsetToInner() → {Number}

获得滚动条向内偏移
Returns:
Number

GetTopStateImage() → {Array}

获取上方状态图标
Returns:
Array

GetTopStateImageByIndex(nIndex) → {String}

获取单个上方状态图标
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

HiddenItemByIndex(nIndex, bShow)

隐藏一个项
Parameters:
Name Type Description
nIndex Number 索引
bShow Boolean 是否显示

InsertItem(nIndex1, nIndex2)

插入项
Parameters:
Name Type Description
nIndex1 Number 行索引
nIndex2 Number 位索引

IsDrawBgColor() → {Boolean}

获取是否绘制图标背景色
Returns:
Boolean

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BgColor Color "0x00000000"

SetBgImg(strImg)

背景图
Parameters:
Name Type Description
strImg ImageProp 图片
Properties:
Name Type Description
BgImg ImageProp ""

SetBgImgRepeat(strMode)

背景图绘制模式
Parameters:
Name Type Description
strMode String 图片
Properties:
Name Type Description
BgImgRepeat Combo ["repeat","no-repeat","repeat-x","repeat-y"]

SetBottomStateImage(strImg)

下方状态图标
Parameters:
Name Type Description
strImg ImageProp 背景图

SetBottomStateImageByIndex(nIndex, strImg)

单个下方状态图标
Parameters:
Name Type Description
nIndex Number 索引
strImg ImageProp 背景图

SetCellAmount(nAmount, nWidth, nHeight)

单元格数
Parameters:
Name Type Description
nAmount Number 单元格数
nWidth Number
nHeight Number

SetDrawBgColor(bDraw)

是否绘制背景色
Parameters:
Name Type Description
bDraw Boolean true背景色,false背景图
Properties:
Name Type Description
DrawBgColor Boolean true

SetItemBackgroundImage(strImg)

项背景图
Parameters:
Name Type Description
strImg ImageProp 背景图
Properties:
Name Type Description
ItemBackgroundImage ImageProp "./images/bg_clock_dis.png"

SetItemBackgroundImageByIndex(nIndex, strImg)

单个项背景图
Parameters:
Name Type Description
nIndex Number 索引
strImg ImageProp 背景图

SetItemHorizontalSpace(nMargin)

项水平间距
Parameters:
Name Type Description
nMargin Number
Properties:
Name Type Description
ItemHorizontalSpace Number 10

SetItemVerticalSpace(nMargin)

项垂直间距
Parameters:
Name Type Description
nMargin Number
Properties:
Name Type Description
ItemVerticalSpace Number 4

SetLeftTextByIndex(nIndex, strSer)

单个左侧文本
Parameters:
Name Type Description
nIndex Number 索引
strSer String 文本

SetLeftTextColor(strColor)

左侧文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LeftTextColor Color "0xffffffff"

SetLeftTextColorByIndex(nIndex, strColor)

单个左侧文本颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 颜色

SetLeftTextSize(nSize)

左侧文本大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
LeftTextSize Number 16

SetPreinstallColumnAmount(nAmount)

预设列数
Parameters:
Name Type Description
nAmount Number 列数

SetRightBottomTextByIndex(nIndex, strState)

右侧下方文本
Parameters:
Name Type Description
nIndex Number 索引
strState String 状态

SetRightMessageHorizontalSpace(nPad)

右侧信息水平间距
Parameters:
Name Type Description
nPad Number 间距
Properties:
Name Type Description
RightMessageHorizontalSpace Number 5

SetRightMessageVerticalSpace(nPad)

右侧信息垂直间距
Parameters:
Name Type Description
nPad Number
Properties:
Name Type Description
RightMessageVerticalSpace Number 5

SetRightTextColor(strColor)

右侧文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
RightTextColor Color "0xffffffff"

SetRightTextColorByIndex(nIndex, strColor)

单个右侧文字颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 颜色

SetRightTextSize(nSize)

右侧文字大小
Parameters:
Name Type Description
nSize Number 颜色
Properties:
Name Type Description
RightTextSize Number 14

SetRightTopTextByIndex(nIndex, strState)

右侧上方文本
Parameters:
Name Type Description
nIndex Number 索引
strState String 状态

SetScrollBarColor(bgColor, trackColor, ThumbColor, ButtonColor)

滚动条颜色
Parameters:
Name Type Description
bgColor String 整体背景色
trackColor String 轨道颜色
ThumbColor String 滑块颜色
ButtonColor String 按钮颜色

SetScrollBarFacade(nWidth, nTrackR, nThumbR, nButtonH, nButtonR)

滚动条样式
Parameters:
Name Type Description
nWidth Number 滚动条宽度
nTrackR Number 轨道圆角
nThumbR Number 滑块圆角
nButtonH Number 按钮高度
nButtonR Number 按钮圆角

SetScrollBarOffsetToInner(nOffset)

滚动条向内偏移
Parameters:
Name Type Description
nOffset Number 偏移量
Properties:
Name Type Description
ScrollBarOffsetToInner Number 2

SetTopStateImage(strImg)

上方状态图标
Parameters:
Name Type Description
strImg ImageProp 图标

SetTopStateImageByIndex(nIndex, strImg)

单个上方状态图标
Parameters:
Name Type Description
nIndex Number 索引
strImg ImageProp 背景图