new XUIInstanceList()
Methods
-
AddItem(strName, strImage, strNamePer, labArr, UuId, bWarn)
-
添加一项
Parameters:
Name Type Description strName
String 项的名称 strImage
ImageProp 添加icon路径 strNamePer
String 人员名称 labArr
Array 标签数组对象 UuId
Number 用户id bWarn
Boolean true为警报false为不警报 -
GetAllItemCount() → {Number}
-
获取item项个数
Returns:
Number -
GetIndexByUuid(nUuid) → {Number}
-
根据Id获取索引
Parameters:
Name Type Description nUuid
Number Returns:
Number -
GetSelectIndex() → {Number}
-
选中获取索引
Returns:
Number -
GetSelectUuid() → {Number}
-
选中获取id
Returns:
Number -
GetUpdateStateByUuid(Uuid) → {Boolean}
-
根据Id获取状态
Parameters:
Name Type Description Uuid
Number Returns:
Boolean -
RemoveAll()
-
删除列表所有
-
RemoveByIndex(nIndex) → {Boolean}
-
按索引删除一项
Parameters:
Name Type Description nIndex
Number 索引从0开始 Returns:
Boolean -
SearchByLabel(arrLabel)
-
按标签检索
Parameters:
Name Type Description arrLabel
Array -
SearchByName(strText)
-
按名称检索
Parameters:
Name Type Description strText
String -
SearchByPerName(strText)
-
按条件检索
Parameters:
Name Type Description strText
String -
SelectAllItem(bSel)
-
设置全选
Parameters:
Name Type Description bSel
Boolean -
setData(arrData)
-
设置数据
Parameters:
Name Type Description arrData
Array -
SetIconByIndex(nIndex, strImage)
-
按索引设置图标
Parameters:
Name Type Description nIndex
Number 索引从0开始 strImage
ImageProp 添加icon路径 Properties:
Name Type Description setIcon
Collection [-1,"XUIInstanceList/image/huwei.png"] -
SetItemByIndex(nIndex, strName, strImage, strNamePer, labArr, UuId, bWarn)
-
按索引修改整列内容
Parameters:
Name Type Description nIndex
Number 索引从0开始 strName
String 项的名称 strImage
ImageProp 添加icon路径 strNamePer
String 人员名称 labArr
Array 标签数组对象 UuId
Number 用户Id bWarn
Boolean true为警报false为不警报 -
SetItemLabByIndex(nIndex, labArr)
-
按索引修改一组标签
Parameters:
Name Type Description nIndex
Number labArr
Array 标签数组对象 -
SetNameByIndex(nIndex, strName)
-
按索引设置名称
Parameters:
Name Type Description nIndex
Number 索引从0开始 strName
String 项的名称 Properties:
Name Type Description NameAndIconByIndex
Collection [-1,"卫星"] -
SetPresonNameByIndex(nIndex, strName)
-
按索引修改人名
Parameters:
Name Type Description nIndex
Number 索引从0开始 strName
String 人员名字 Properties:
Name Type Description SetPreName
Collection [-1,""] -
SetSelectByIndex(nIndex)
-
按索引设置选中
Parameters:
Name Type Description nIndex
Number 索引从零开始 Properties:
Name Type Description SelectItemIndex
Number 1 -
SetSelectByUuid(nUuid)
-
按id设置选中
Parameters:
Name Type Description nUuid
Number -
SetUpdateStateByUuid(Uuid, bWarn)
-
根据Id设置状态
Parameters:
Name Type Description Uuid
Number bWarn
Boolean