new XUISynthesizeTable()
Methods
-
AddColumn(strText, strType, nWidth, arrData)
-
加入列
Parameters:
Name Type Description strText
String 标题 strType
String 类型 nWidth
Number 宽 arrData
Array 数据 -
AddHeaderCell(strType, nWidth, strText)
-
加入标题
Parameters:
Name Type Description strType
String 列类型 nWidth
Number 列宽 strText
String 内容 -
AddRow(arrData)
-
加入行
Parameters:
Name Type Description arrData
Array -
AddRowByIndex(nIndex, arrData)
-
按索引插入行
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array -
Clear()
-
清空
-
ClearDataArea()
-
清空数据区
-
ClearListContent()
-
清空下拉框内容
-
DelColumnByIndex(nIndex)
-
删除列
Parameters:
Name Type Description nIndex
Number 索引 -
DelRowByIndex(nIndex)
-
删除行
Parameters:
Name Type Description nIndex
Number 索引 -
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImg() → {String}
-
获取背景图
Returns:
String -
GetBgImgRepeat() → {String}
-
获取背景图绘制模式
Returns:
String -
GetBorderColor() → {String}
-
获取边框颜色
Returns:
String -
GetChunkColor() → {String}
-
获得滑块颜色
Returns:
String -
GetChunkRadius() → {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 -
GetDataAreaBgColor() → {String}
-
获得数据区背景颜色
Returns:
String -
GetFloatItemHotColor() → {String}
-
获取选框边框颜色
Returns:
String -
GetFloatSelectFrame() → {Array}
-
获取浮动选框颜色
Returns:
Array -
GetFloatSelectFrameButtomColor() → {Array}
-
获取浮动选框按钮颜色
Returns:
Array -
GetHearderBgColor() → {String}
-
获取标题行背景色
Returns:
String -
GetHearderColumnWidth() → {Array}
-
获得标题行列宽
Returns:
Array -
GetHearderContent() → {Array}
-
获得标题行内容
Returns:
Array -
GetHearderHeight() → {Number}
-
获取标题行高
Returns:
Number -
GetHearderTextColor() → {String}
-
获取标题行文字颜色
Returns:
String -
GetHearderTextSize() → {Number}
-
获取标题行文字大小
Returns:
Number -
GetListArrowsColor() → {String}
-
获取列表箭头颜色
Returns:
String -
GetListBgColor() → {String}
-
获取列表背景色
Returns:
String -
GetListBorderColor() → {String}
-
获取列表边框色
Returns:
String -
GetListItemHoverColor() → {String}
-
获得列表功能选项高亮颜色
Returns:
String -
GetListSeleBgColor() → {String}
-
获取列表选区背景色
Returns:
String -
GetListTextContentByIndex(nIndexR, nIndexC)
-
获得列表默认文字文本
Parameters:
Name Type Description nIndexR
Number 行索引 nIndexC
Number 列索引 -
GetRadiosSave() → {Array}
-
获取选中行序号
Returns:
Array -
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 -
GetScrollBarColor() → {Array}
-
获取滚动条颜色
Returns:
Array -
GetScrollBarContainerWidth() → {Number}
-
获得滚动条容器宽度
Returns:
Number -
GetScrollBarFacade() → {Array}
-
获取滚动条样式
Returns:
Array -
GetScrollBarWidth() → {Number}
-
获得滚动条宽度
Returns:
Number -
GetSeleImg() → {Array}
-
获得筛选功能图标
Returns:
Array -
GetSplitLineColor() → {String}
-
获取切割线颜色
Returns:
String -
GetSwitchBgColor() → {Array}
-
获取开关背景颜色
Returns:
Array -
GetSwitchBorderColor() → {Array}
-
获取开关边框颜色
Returns:
Array -
GetSwitchIconColor() → {Array}
-
获取开关icon颜色
Returns:
Array -
GetSwitchTextColor() → {Array}
-
获取开关文字颜色
Returns:
Array -
GetTickColor() → {String}
-
获得勾选颜色
Returns:
String -
GetWarningMessage(strText) → {String}
-
获得告警级别信息
Parameters:
Name Type Description strText
String 级别 Returns:
String -
InsertColumnByIndex(nIndex, strText, strType, nWidth, arrData)
-
按索引插入列
Parameters:
Name Type Description nIndex
Number 索引 strText
String 标题 strType
String 类型 nWidth
Number 宽 arrData
Array 数据 -
IsDrawBgColor() → {Boolean}
-
获取是否绘制图标背景色
Returns:
Boolean -
SetArrowsColor(strNoSort, strSort)
-
箭头颜色
Parameters:
Name Type Description strNoSort
String strSort
String Properties:
Name Type Description ArrowsColor
Collection ["0xff283e75", "0xff43bafe"] -
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 "0xff111f3f" -
SetBtnBgColor(strColor1, strColor2)
-
按钮背景色
Parameters:
Name Type Description strColor1
String 普通背景色 strColor2
String 按下背景色 Properties:
Name Type Description BtnBgColor
Collection ["0xff213870","0xff0A214B"] -
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 -
SetColorByIndex(nRow, nColumn, strColor)
-
根据索引设置颜色
Parameters:
Name Type Description nRow
Number 行 nColumn
Number 列 strColor
String 颜色 Properties:
Name Type Description ColorByIndex
Collection [0,0,"0xffFF0000"] -
SetColumnShadeColorByIndex(nIndex, strColor)
-
列的遮罩
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 Properties:
Name Type Description ColumnShadeColorByIndex
Collection [0,""] -
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 行高 -
SetDataAreaBgColor(strColor)
-
数据区背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description DataBgColor
Color "0x00000000" -
SetDrawBgColor(bDraw)
-
是否绘制图标背景色
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetDropDownContent(strContent, strColor)
-
设置下拉框内容
Parameters:
Name Type Description strContent
String 下拉框内容 strColor
String 下拉框文字颜色 -
SetEditBgColor(strColor)
-
编辑框背景色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description EditBgColor
Color "0xff213361" -
SetEditBorderColor(strColor)
-
编辑框边框色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description EditBorderColor
Color "0xff225592" -
SetEditButtonCancleHotImg(strImg)
-
编辑框取消按钮高亮图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonCancleHotImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_no_hover.png" -
SetEditButtonCancleImg(strImg)
-
编辑框取消按钮图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonCancleImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_no_normal.png" -
SetEditButtonClickHotImg(strImg)
-
编辑框按钮点击后高亮图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonClickHotImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_yes_hover.png" -
SetEditButtonClickImg(strImg)
-
编辑框按钮点击后图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonClickImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_yes_normal.png" -
SetEditButtonHotImg(strImg)
-
编辑框按钮高亮图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonHotImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_edit_hover.png" -
SetEditButtonImg(strImg)
-
编辑框按钮图片
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description EditButtonImg
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_edit_normal.png" -
SetEventColumn(nIndex)
-
指定事件列
Parameters:
Name Type Description nIndex
Number 列索引 -
SetFiltrateData(arrData, nIndex1)
-
筛选框数据
Parameters:
Name Type Description arrData
Array 数据 nIndex1
Number 功能所在列的索引 -
SetFloatItemHotColor(strColor)
-
选框边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description FloatItemHotColor
Color "0xff123456" -
SetFloatSelectFrame(strColor1, strColor2)
-
浮动选框颜色
Parameters:
Name Type Description strColor1
String 主要颜色 strColor2
String 间隙颜色 Properties:
Name Type Description FloatSelectFrame
Collection ["0xff213361","0xff1B2A4E"] -
SetFloatSelectFrameButtomColor(strColorNor, strColorHot)
-
浮动选框按钮颜色
Parameters:
Name Type Description strColorNor
String 普通状态颜色 strColorHot
String 高亮状态颜色 Properties:
Name Type Description FloatSelectFrameButtomColor
Collection ["0xff263B70","0xff345199"] -
SetHeaderTextContentByIndex(nIndexC, strText)
-
某列标题文字
Parameters:
Name Type Description nIndexC
Number 列索引 strText
String 文本 -
SetHearderBgColor(strColor)
-
标题行背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description HearderBgColor
Color "" -
SetHearderHeight(nHeight)
-
标题行高
Parameters:
Name Type Description nHeight
Number 行高 -
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 -
SetListArrowsColor(strColor)
-
列表箭头颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ListArrowsColor
Color "0xff35b3c7" -
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 "0xff013E7E" -
SetListItemHoverColor(strColor)
-
列表功能选项高亮颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ListItemHoverColor
Color "0xff273E79" -
SetListMod(bMod)
-
设置列表模式
Parameters:
Name Type Description bMod
Boolean 列表模式 Properties:
Name Type Description ListMod
Boolean true -
SetListSeleBgColor(strColor)
-
列表选区背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description ListSeleBgColor
Color "0xff111F3F" -
SetListTextColor(nIndex, strColor)
-
设置列表文字颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 列表文字颜色 Properties:
Name Type Description ListTextColor
Collection [0,"0xffFF0000"] -
SetListTextContentByIndex(nIndexR, nIndexC, strText)
-
列表默认文字文本
Parameters:
Name Type Description nIndexR
Number 行索引 nIndexC
Number 列索引 strText
String 文本 -
SetRadioColor(nIndex, strColor)
-
设置选框颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 选框颜色 Properties:
Name Type Description RadioColor
Collection [0,"0xffFF0000"] -
SetRadiosBgColor(strColor)
-
选框背景色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RadiosBgColor
Color "0xff41B5F3" -
SetRadiosBorderColor(strColor)
-
选框边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RadiosBorderColor
Color "0xff41B5F3" -
SetRadioShow(bShow)
-
选框是否显示
Parameters:
Name Type Description bShow
Boolean 选框是否显示 Properties:
Name Type Description RadioShow
Boolean false -
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 ["0xff002729","0xff002729"] -
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 宽度 -
SetSeleImgHot(strImgHot)
-
筛选功能高亮图标
Parameters:
Name Type Description strImgHot
ImageProp 默认状态图片 Properties:
Name Type Description SeleImgHot
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_shaixuan_hover.png" -
SetSeleImgNor(strImgNor)
-
筛选功能图标
Parameters:
Name Type Description strImgNor
ImageProp 选中状态图片 Properties:
Name Type Description SeleImgNor
ImageProp "NUODT_JTFA/XUISynthesizeTable/images/icon/blue/icon_shaixuan_normal.png" -
SetSort(bUse)
-
首列是否使用排序
Parameters:
Name Type Description bUse
Boolean 是否使用排序 Properties:
Name Type Description Sort
Boolean false -
SetSplitLineColor(strColor)
-
切割线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description SplitLineColor
Color "0xff263b6f" -
SetSwitchBgColor(strColor1, strColor2)
-
开关背景颜色
Parameters:
Name Type Description strColor1
String 开时颜色 strColor2
String 关时颜色 Properties:
Name Type Description SwitchBgColor
Collection ["0xff44BFFF","0xff17355D"] -
SetSwitchBorderColor(strColor1, strColor2)
-
开关边框颜色
Parameters:
Name Type Description strColor1
String 开时颜色 strColor2
String 关时颜色 Properties:
Name Type Description SwitchBorderColor
Collection ["0xff44BFFF","0xff17355D"] -
SetSwitchIconColor(strColor1, strColor2)
-
开关icon颜色
Parameters:
Name Type Description strColor1
String 开时颜色 strColor2
String 关时颜色 Properties:
Name Type Description SwitchIconColor
Collection ["0xff3BCAFC","0xff1B4675"] -
SetSwitchTextColor(strColor1, strColor2)
-
开关文字颜色
Parameters:
Name Type Description strColor1
String 开时颜色 strColor2
String 关时颜色 Properties:
Name Type Description SwitchTextColor
Collection ["0xffffffff","0xff3BCAFC"] -
SetTickColor(strColor)
-
勾选颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TickColor
Color "0xff41B5F3" -
SetWarningMessage(strText, strImg)
-
告警级别信息
Parameters:
Name Type Description strText
String 级别 strImg
ImageProp 图片