new XUIDataSelection()
Methods
-
AddData(arrData)
-
加入数据
Parameters:
Name Type Description arrData
Array 数据 -
AddDataToRight(arrData)
-
右侧加入数据
Parameters:
Name Type Description arrData
Array 数据 -
ClearAllData()
-
清空所有数据
-
ClearLeftData()
-
清空左侧数据
-
ClearRightData()
-
清空右侧数据
-
DeleteData(nIndex)
-
删除数据
Parameters:
Name Type Description nIndex
Number 索引 -
DeleteDataToRight(nIndex)
-
删除右侧数据
Parameters:
Name Type Description nIndex
Number 索引 -
GetBgColor() → {String}
-
获得背景颜色
Returns:
String -
GetBgImg() → {String}
-
获得背景图
Returns:
String -
GetBotButtonBgImage() → {String}
-
获得下方按钮背景图
Returns:
String -
GetButtonSize() → {Array}
-
获得按钮大小
Returns:
Array -
GetButtonSizeSpace() → {String}
-
获得两端间距
Returns:
String -
GetLeftData() → {Array}
-
获得左侧数据
Returns:
Array -
GetLeftDataByIndex(nIndex) → {String}
-
获得左侧某数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetLeftSelectBgColor() → {String}
-
获得左框背景色
Returns:
String -
GetLeftTextColor() → {String}
-
获得左框文字颜色
Returns:
String -
GetLeftTextSize() → {Number}
-
获得左框文字大小
Returns:
Number -
GetLeftTitleColor() → {String}
-
获得左标题颜色
Returns:
String -
GetLeftTitleContent() → {String}
-
获得左标题
Returns:
String -
GetLeftTitleSize() → {Number}
-
获得左标题文字大小
Returns:
Number -
GetMouseclickColor() → {String}
-
获得鼠标选中颜色
Returns:
String -
GetMousemoveColor() → {String}
-
获得鼠标划过颜色
Returns:
String -
GetRadius() → {Number}
-
获得圆角
Returns:
Number -
GetRightData() → {Array}
-
获得右侧数据
Returns:
Array -
GetRightDataByIndex(nIndex) → {String}
-
获得右侧某数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetRightSelectBgColor() → {String}
-
获得右框背景色
Returns:
String -
GetRightTextColor() → {String}
-
获得右框文字颜色
Returns:
String -
GetRightTextSize() → {Number}
-
获得右框文字大小
Returns:
Number -
GetRightTitleColor() → {String}
-
获得右标题颜色
Returns:
String -
GetRightTitleContent() → {String}
-
获得右标题
Returns:
String -
GetRightTitleSize() → {Number}
-
获得右标题文字大小
Returns:
Number -
GetScrollBarColors() → {Array}
-
获得滚动条颜色
Returns:
Array -
GetScrollBarFacade() → {Array}
-
获得滚动条样式
Returns:
Array -
GetSelectionModule() → {Boolean}
-
获得选择模式
Returns:
Boolean -
GetTopButtonBgImage() → {String}
-
获得上方按钮背景图
Returns:
String -
InsertData(nIndex, strData)
-
插入数据
Parameters:
Name Type Description nIndex
Number 索引 strData
String 数据 -
InsertDataToRight(nIndex, strData)
-
右侧插入数据
Parameters:
Name Type Description nIndex
Number 索引 strData
String 数据 -
IsDrawBgColor() → {Boolean}
-
获得绘制背景
Returns:
Boolean -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BgColor
Color "0xff06262e" -
SetBgImg(strImg)
-
背景图
Parameters:
Name Type Description strImg
ImageProp 图片 Properties:
Name Type Description BgImg
ImageProp "" -
SetBotButtonBgImage(strImg)
-
下方按钮背景图
Parameters:
Name Type Description strImg
ImageProp 背景图 Properties:
Name Type Description BotButtonBgImage
ImageProp "" -
SetButtonSize(nWidth, nHeight)
-
按钮大小
Parameters:
Name Type Description nWidth
Number 宽 nHeight
Number 按钮高 Properties:
Name Type Description ButtonSize
Collection [44,28] -
SetButtonSizeSpace(nSpace)
-
按钮两端间距
Parameters:
Name Type Description nSpace
Number 间距 Properties:
Name Type Description ButtonSizeSpace
Number 75 -
SetDrawBgColor(bDraw)
-
绘制背景
Parameters:
Name Type Description bDraw
Boolean true背景色,false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetLeftDataByIndex(nIndex, strText)
-
修改左侧某数据
Parameters:
Name Type Description nIndex
Number 索引 strText
String 数据 -
SetLeftSelectBgColor(strColor)
-
左框背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description LeftSelectBgColor
Color "0xff213361" -
SetLeftTextColor(strColor)
-
左框文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LeftTextColor
Color "0xffffffff" -
SetLeftTextSize(nSize)
-
左框文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description LeftTextSize
Number 16 -
SetLeftTitleColor(strColor)
-
左标题颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LeftTitleColor
Color "0xffffffff" -
SetLeftTitleContent(strText)
-
左标题
Parameters:
Name Type Description strText
String 左标题 Properties:
Name Type Description LeftTitleContent
String "原子钟编号" -
SetLeftTitleSize(nSize)
-
左标题文字大小
Parameters:
Name Type Description nSize
Number 左侧标题文字大小 Properties:
Name Type Description LeftTitleSize
Number 16 -
SetMouseclickColor(strColor)
-
鼠标选中颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description MouseclickColor
Color "0xff111f3f" -
SetMousemoveColor(strColor)
-
鼠标划过颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description MousemoveColor
Color "0xff283e75" -
SetRadius(nRadius)
-
圆角
Parameters:
Name Type Description nRadius
Number 圆角 Properties:
Name Type Description Radius
Number 10 -
SetRightDataByIndex(nIndex, strText)
-
修改右侧某数据
Parameters:
Name Type Description nIndex
Number 索引 strText
String 数据 -
SetRightSelectBgColor(strColor)
-
右框背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description RightSelectBgColor
Color "0xff213361" -
SetRightTextColor(strColor)
-
右框文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RightTextColor
Color "0xffffffff" -
SetRightTextSize(nSize)
-
右框文字大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description RightTextSize
Number 16 -
SetRightTitleColor(strColor)
-
右标题颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RightTitleColor
Color "0xffffffff" -
SetRightTitleContent(strText)
-
右标题
Parameters:
Name Type Description strText
String 右标题 Properties:
Name Type Description RightTitleContent
String "原子钟组" -
SetRightTitleSize(nSize)
-
右标题文字大小
Parameters:
Name Type Description nSize
Number 右侧标题文字大小 Properties:
Name Type Description RightTitleSize
Number 16 -
SetScrollBarColors(bgColor, trackColor, ThumbColor, ButtonColor)
-
滚动条颜色
Parameters:
Name Type Description bgColor
String 整体背景色 trackColor
String 轨道颜色 ThumbColor
String 滑块颜色 ButtonColor
String 按钮颜色 Properties:
Name Type Description ScrollBarColors
Collection ["0x0000ff00", "0x0000ff00", "0xff1b4675", "0x0000ff00"] -
SetScrollBarFacade(nWidth, nTrackR, nThumbR, nButtonH, nButtonR)
-
滚动条样式
Parameters:
Name Type Description nWidth
Number 滚动条宽度 nTrackR
Number 轨道圆角 nThumbR
Number 滑块圆角 nButtonH
Number 按钮高度 nButtonR
Number 按钮圆角 Properties:
Name Type Description ScrollBarFacade
Collection [10,10,10,0,0] -
SetSelectionModule(bModule)
-
选择模式
Parameters:
Name Type Description bModule
Boolean 模式 Properties:
Name Type Description SelectionModule
Boolean true -
SetTopButtonBgImage(strImg)
-
上方按钮背景图
Parameters:
Name Type Description strImg
ImageProp 背景图 Properties:
Name Type Description TopButtonBgImage
ImageProp ""