new XUIMultifunctionTable()
Methods
-
AddColumn(strText, nWidth, arrData)
-
增加列
Parameters:
Name Type Description strText
String 标题 nWidth
Number 宽 arrData
Array 数据 -
AddHearderContent(strTitle, nWidth)
-
加入单列标题
Parameters:
Name Type Description strTitle
String 标题 nWidth
Number 宽度 -
AddRowsContent(arrData)
-
加入行
Parameters:
Name Type Description arrData
Array 数据 -
Clear()
-
清空
-
ClearDataArea()
-
清空
-
DelColumnByIndex(nIndex)
-
删除列
Parameters:
Name Type Description nIndex
Number 索引 -
DelColumnByIndex(bVisible)
-
隐藏控件
Parameters:
Name Type Description bVisible
Boolean 是否显示 -
DelRowByIndex(nIndex)
-
删除行
Parameters:
Name Type Description nIndex
Number 索引 -
GetArrowsColor() → {String}
-
获得选项框箭头颜色
Returns:
String -
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImg() → {String}
-
获取背景图
Returns:
String -
GetBgImgRepeat() → {String}
-
获取背景图绘制模式
Returns:
String -
GetBorderColor() → {String}
-
获取边框颜色
Returns:
String -
GetButtomBgImg() → {String}
-
获得按钮背景图
Returns:
String -
GetButtomClickBgImg() → {String}
-
获得按钮点击背景图
Returns:
String -
GetButtomHoverBgImg() → {String}
-
按钮悬浮背景图
Returns:
String -
GetButtomTextColor() → {String}
-
获得按钮文字颜色
Returns:
String -
GetButtomTextSize() → {Number}
-
获得按钮文字大小
Returns:
Number -
GetCellBgColorByIndex(nIndex1, nIndex2) → {String}
-
获取单个单元格背景色
Parameters:
Name Type Description nIndex1
Number 行索引 nIndex2
Number 列索引 Returns:
String -
GetChunkColor() → {String}
-
获得滑块颜色
Returns:
String -
GetChunkRadius() → {Number}
-
获得滑块圆角
Returns:
Number -
GetColumnBgColorByIndex(nIndex) → {String}
-
获取单列背景色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetColumnFunction() → {Array}
-
获取列的功能
Returns:
Array -
GetColumnsCount() → {Number}
-
获取列的数量
Returns:
Number -
GetColumnTextColorByIndex(nIndex) → {String}
-
获取单列文字颜色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetColumnTextSizeByIndex(nIndex) → {Number}
-
获取单列文字大小
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number -
GetDataAeraHeight() → {Number}
-
获得数据区行高
Returns:
Number -
GetHearderBgColor() → {String}
-
获取标题行背景色
Returns:
String -
GetHearderCellBgColorByIndex(nIndex) → {String}
-
获取表头单元格背景色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetHearderColumnWidth() → {Array}
-
获得标题行列宽
Returns:
Array -
GetHearderContent() → {Array}
-
获得标题行内容
Returns:
Array -
GetHearderHeight() → {Number}
-
获取标题行高
Returns:
Number -
GetHearderTextColor() → {String}
-
获取标题行文字颜色
Returns:
String -
GetHearderTextSize() → {Number}
-
获取标题行文字大小
Returns:
Number -
GetHearderTitle() → {Array}
-
获得所有标题
Returns:
Array -
GetListBgColor() → {String}
-
获得选项框背景色
Returns:
String -
GetListBorderColor() → {String}
-
获得选项框边框颜色
Returns:
String -
GetListDefultContentByIndex(nIndex)
-
获得单个选项框默认内容
Parameters:
Name Type Description nIndex
Number 索引 -
GetListDefultContentBySerial(strSerial) → {String}
-
通过序号获得单个选项框默认内容
Parameters:
Name Type Description strSerial
Number 序号 Returns:
String -
GetListItemHoverColor() → {String}
-
获得列表功能选项高亮颜色
Returns:
String -
GetListTextColor() → {String}
-
获得选项框文字颜色
Returns:
String -
GetListTextSize() → {Number}
-
选项框文字大小
Returns:
Number -
GetRowData(nIndex) → {Array}
-
获得单行数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Array -
GetRowsBgColor() → {Array}
-
获取背景行渐变色
Returns:
Array -
GetRowsTextColor() → {String}
-
获取所有行文字颜色
Returns:
String -
GetRowsTextSize() → {Number}
-
获取所有行文字大小
Returns:
Number -
GetRowTextColorByIndex(nIndex) → {String}
-
获取单行文字颜色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetRowTextSizeByIndex(nIndex) → {Number}
-
获取单行文字大小
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number -
GetScrollBarBgColor() → {String}
-
获得滚动条背景色
Returns:
String -
GetScrollBarContainerWidth() → {Number}
-
获得滚动条容器宽度
Returns:
Number -
GetScrollBarWidth() → {Number}
-
获得滚动条宽度
Returns:
Number -
GetSelectionAreaBgColor() → {String}
-
获得选项框选区背景色
Returns:
String -
GetSwitchBgColor() → {String}
-
获得开关背景色
Returns:
String -
GetSwitchBorderColor() → {Array}
-
获得开关边框色
Returns:
Array -
GetSwitchColor() → {Array}
-
获得开关颜色
Returns:
Array -
GetSwitchStartByIndex(nIndex) → {Boolean}
-
获得单个开关状态
Parameters:
Name Type Description nIndex
String 索引 Returns:
Boolean -
GetSwitchStartBySerial(strSerial) → {Boolean}
-
通过序号获得单个开关状态
Parameters:
Name Type Description strSerial
String 序号 Returns:
Boolean -
GetSwitchTextColor() → {Array}
-
获得开关文字颜色
Returns:
Array -
GetSwitchTextSize() → {Number}
-
获得开关文字大小
Returns:
Number -
InsertColumn(nIndex, strText, nWidth, arrData)
-
插入列
Parameters:
Name Type Description nIndex
Number 索引 strText
String 标题 nWidth
Number 宽 arrData
Array 数据 -
InsertRows(nIndex, arrData)
-
插入行
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array 数据 -
IsDrawBgColor() → {Boolean}
-
获取是否绘制图标背景色
Returns:
Boolean -
ListContent(nIndex1, nIndex2, arrData, nIndex)
-
选项框内容
Parameters:
Name Type Description nIndex1
Number 行索引 nIndex2
Number 列索引 arrData
Array 数据 nIndex
Number 默认值索引 -
SetArrowsColor(strColor)
-
选项框箭头颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ArrowsColor
Color "0xff2a7ecf" -
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"] -
SetBorderColor(strColor)
-
边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BorderColor
Color "0xff1f3260" -
SetButtomBgImg(strImg)
-
按钮背景图
Parameters:
Name Type Description strImg
ImageProp 背景图 Properties:
Name Type Description ButtomBgImg
ImageProp "NUODT_JTFA/XUIMultifunctionTable/images/btn_apply_nor.png" -
SetButtomClickBgImg(strImg)
-
按钮点击背景图
Parameters:
Name Type Description strImg
ImageProp 背景图 Properties:
Name Type Description ButtomClickBgImg
ImageProp "NUODT_JTFA/XUIMultifunctionTable/images/btn_apply_pre.png" -
SetButtomHoverBgImg(strImg)
-
按钮悬浮背景图
Parameters:
Name Type Description strImg
ImageProp 背景图 Properties:
Name Type Description ButtomHoverBgImg
ImageProp "NUODT_JTFA/XUIMultifunctionTable/images/btn_apply_hot.png" -
SetButtomTextColor(strColor)
-
按钮文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ButtomTextColor
Color "0xffffffff" -
SetButtomTextSize(nSize)
-
按钮文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description ButtomTextSize
Number 16 -
SetCellBgColorByIndex(nIndex1, nIndex2, strColor)
-
单个单元格背景色
Parameters:
Name Type Description nIndex1
Number 行索引 nIndex2
Number 列索引 strColor
String 背景色 -
SetChunkColor(strColor)
-
滑块颜色
Parameters:
Name Type Description strColor
String 滑块颜色 Properties:
Name Type Description ChunkColor
Color "0xff1B4675" -
SetChunkRadius(nRadius)
-
滑块圆角
Parameters:
Name Type Description nRadius
Number 滑块圆角 Properties:
Name Type Description ChunkRadius
Number 10 -
SetColumnBgColorByIndex(nIndex, strColor)
-
单列背景色
Parameters:
Name Type Description nIndex
Number 索引 strColor
Number 背景色 -
SetColumnFunction(nIndex, strEffect, arrData)
-
列的功能
Parameters:
Name Type Description nIndex
Number 索引 strEffect
String 功能 arrData
Array 数据 -
SetColumnsCount(nCount)
-
列的数量
Parameters:
Name Type Description nCount
Number 列的数量 -
SetColumnTextColorByIndex(nIndex, strColor)
-
单列文字颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 Properties:
Name Type Description ColumnTextColorByIndex
Collection [0,"0xffffffff"] -
SetColumnTextSizeByIndex(nIndex, nSize)
-
单列文字大小
Parameters:
Name Type Description nIndex
Number 索引 nSize
Number 大小 Properties:
Name Type Description ColumnTextSizeByIndex
Collection [0,14] -
SetDataAeraHeight(nHeight)
-
数据区行高
Parameters:
Name Type Description nHeight
Number 行高 Properties:
Name Type Description DataAeraHeight
Number 20 -
SetDrawBgColor(bDraw)
-
是否绘制图标背景色
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetHearderBgColor(strColor)
-
标题行背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description HearderBgColor
Color "0xff111f3f" -
SetHearderCellBgColorByIndex(nIndex, strColor)
-
表头单元格背景色
Parameters:
Name Type Description nIndex
Number 索引 strColor
Number 背景色 -
SetHearderColumnWidth(arrWidth)
-
标题行列宽
Parameters:
Name Type Description arrWidth
Array -
SetHearderContent(arrData, arrWidth)
-
标题行内容
Parameters:
Name Type Description arrData
Array 标题 arrWidth
Array 数据 -
SetHearderHeight(nHeight)
-
标题行高
Parameters:
Name Type Description nHeight
Number 行高 Properties:
Name Type Description HearderHeight
Number 40 -
SetHearderTextColor(strColor)
-
标题行文字颜色
Parameters:
Name Type Description strColor
String 大小 Properties:
Name Type Description HearderTextColor
Color "0xffffffff" -
SetHearderTextSize(nSize)
-
标题行文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description HearderTextSize
Number 16 -
SetHearderTitle(arrData)
-
所有标题
Parameters:
Name Type Description arrData
Array 数据 -
SetListBgColor(strColor)
-
选项框背景色
Parameters:
Name Type Description strColor
String 选项框背景色 Properties:
Name Type Description ListBgColor
Color "0xff213361" -
SetListBorderColor(strColor)
-
选项框边框颜色
Parameters:
Name Type Description strColor
String 选项框边框颜色 Properties:
Name Type Description ListBorderColor
Color "0xff2a7ecf" -
SetListDefultContentByIndex(nIndex, strData)
-
单个选项框默认内容
Parameters:
Name Type Description nIndex
Number 索引 strData
String 数据 -
SetListItemHoverColor(strColor)
-
列表功能选项高亮颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ListItemHoverColor
Color "0xff273E79" -
SetListTextColor(strColor)
-
选项框文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ListTextColor
Color "0xffffffff" -
SetListTextSize(nSize)
-
选项框文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description ListTextSize
Number 16 -
SetRowAllData(nIndex, arrData)
-
单行所有数据
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array 数据 -
SetRowData(nIndex, arrData)
-
单行数据
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array 数据 -
SetRowsBgColor(arrColor)
-
背景行渐变色
Parameters:
Name Type Description arrColor
Array 颜色 Properties:
Name Type Description RowsBgColor
Array ["0xff0b152a", "0xff111f3f"] -
SetRowsTextColor(strColor)
-
所有行文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RowsTextColor
Color "0xff000000" -
SetRowsTextSize(nSize)
-
所有行文字大小
Parameters:
Name Type Description nSize
Number 颜色 Properties:
Name Type Description RowsTextSize
Number 16 -
SetRowTextColorByIndex(nIndex, strColor)
-
单行文字颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 Properties:
Name Type Description RowTextColorByIndex
Collection [0,"0xffffffff"] -
SetRowTextSizeByIndex(nIndex, nSize)
-
单行文字大小
Parameters:
Name Type Description nIndex
Number 索引 nSize
Number 大小 Properties:
Name Type Description RowTextSizeByIndex
Collection [0,14] -
SetScrollBarBgColor(strColor)
-
滚动条背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description ScrollBarBgColor
Color "0x00000000" -
SetScrollBarContainerWidth(nWidth)
-
滚动条容器宽度
Parameters:
Name Type Description nWidth
Number 滚动条容器宽度 -
SetScrollBarWidth(nWidth)
-
滚动条宽度
Parameters:
Name Type Description nWidth
Number 宽度 -
SetSelectionAreaBgColor(strColor)
-
选项框选区背景色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description SelectionAreaBgColor
Color "0xff111f3f" -
SetSwitchBgColor(strColor)
-
开关背景色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description SwitchBgColor
Color "0xff111c34" -
SetSwitchBorderColor(strColor1, strColor2)
-
开关边框色
Parameters:
Name Type Description strColor1
String 关时颜色 strColor2
String 开时颜色 Properties:
Name Type Description SwitchBorderColor
Collection ["0xff163159","0xff266fb7"] -
SetSwitchColor(strColor1, strColor2)
-
开关颜色
Parameters:
Name Type Description strColor1
String 关时颜色 strColor2
String 开时颜色 Properties:
Name Type Description SwitchColor
Collection ["0xff1B4675","0xff3BCAFC"] -
SetSwitchStartByIndex(nIndex, bStart)
-
单个开关状态
Parameters:
Name Type Description nIndex
Number 索引 bStart
Boolean 状态 -
SetSwitchTextColor(strColor1, strColor2)
-
开关文字颜色
Parameters:
Name Type Description strColor1
String 关时颜色 strColor2
String 开时颜色 Properties:
Name Type Description SwitchTextColor
Collection ["0xff298ec3","0xffffffff"] -
SetSwitchTextSize(nSize)
-
开关文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description SwitchTextSize
Number 16