/**
* @constructor
*/
function XUIInstanceList() {
}
XUIInstanceList.prototype = {
//事件
/**
* 选择列表项派发事件
* @eventname XUI_INSTANCELIST_ITEMSELECT
* @eventid 0x0000000001
*/
/**
* 导入列表项派发事件
* @eventname XUI_INSTANCELIST_ITEMEXPORT
* @eventid 0x0000000002
*/
/**
* 删除列表项派发事件
* @eventname XUI_INSTANCELIST_ITEMDELETE
* @eventid 0x0000000003
*/
/**
* 多选框选择项事件派发
* @eventname XUI_INSTANCECHECKBOX_ITEMDCHECK
* @eventid 0x0000000004
*/
/**
* 多选框去除项派发事件
* @eventname XUI_INSTANCECHECKBOX_ITEMDCANCEL
* @eventid 0x0000000005
*/
//接口
/**
* 设置数据
* @param {Array} arrData
*/
setData:function (arrData) {
},
/**
* 添加一项
* @param {String} strName 项的名称
* @param {ImageProp} strImage 添加icon路径
* @param {String} strNamePer 人员名称
* @param {Array} labArr 标签数组对象
* @param {Number} UuId 用户id
* @param {Boolean} bWarn true为警报false为不警报
*/
AddItem:function (strName,strImage,strNamePer,labArr,UuId,bWarn) {
},
/**
* 删除列表所有
*/
RemoveAll:function () {
},
/**
* 按索引删除一项
* @param {Number} nIndex 索引从0开始
* @return {Boolean}
*/
RemoveByIndex:function (nIndex) {
},
/**
* 按索引设置名称
* @param {Number} nIndex 索引从0开始
* @param {String} strName 项的名称
* @property {Collection} NameAndIconByIndex [-1,"卫星"]
*/
SetNameByIndex:function (nIndex,strName) {
},
/**
* 按索引设置图标
* @param {Number} nIndex 索引从0开始
* @param {ImageProp} strImage 添加icon路径
* @property {Collection} setIcon [-1,"XUIInstanceList/image/huwei.png"]
*/
SetIconByIndex:function (nIndex,strImage) {
},
/**
* 按索引修改人名
* @param {Number} nIndex 索引从0开始
* @param {String} strName 人员名字
* @property {Collection} SetPreName [-1,""]
*/
SetPresonNameByIndex:function (nIndex,strName) {
},
/**
* 按索引修改一组标签
* @param {Number} nIndex
* @param {Array} labArr 标签数组对象
*/
SetItemLabByIndex:function (nIndex,labArr) {
},
/**
* 按索引修改整列内容
* @param {Number} nIndex 索引从0开始
* @param {String} strName 项的名称
* @param {ImageProp} strImage 添加icon路径
* @param {String} strNamePer 人员名称
* @param {Array} labArr 标签数组对象
* @param {Number} UuId 用户Id
* @param {Boolean} bWarn true为警报false为不警报
*/
SetItemByIndex:function (nIndex,strName,strImage,strNamePer,labArr,UuId,bWarn) {
},
/**
* 根据Id获取索引
* @param {Number} nUuid
* @return {Number}
*/
GetIndexByUuid:function (nUuid) {
},
/**
* 按名称检索
* @param {String} strText
*/
SearchByName:function (strText) {
},
/**
* 按条件检索
* @param {String} strText
*/
SearchByPerName:function (strText) {
},
/**
* 按标签检索
* @param {Array} arrLabel
*/
SearchByLabel:function (arrLabel) {
},
/**
* 按索引设置选中
* @param {Number} nIndex 索引从零开始
* @property {Number} SelectItemIndex -1
*/
SetSelectByIndex:function (nIndex) {
},
/**
* 选中获取索引
* @return {Number}
*/
GetSelectIndex:function () {
},
/**
* 按id设置选中
* @param {Number} nUuid
*/
SetSelectByUuid:function (nUuid) {
},
/**
* 选中获取id
* @return {Number}
*/
GetSelectUuid:function () {
},
/**
* 根据Id设置状态
* @param {Number} Uuid
* @param {Boolean} bWarn
*/
SetUpdateStateByUuid:function (Uuid,bWarn) {
},
/**
* 根据Id获取状态
* @param {Number} Uuid
* @return {Boolean}
*/
GetUpdateStateByUuid:function (Uuid) {
},
/**
* 设置全选
* @param {Boolean} bSel
*/
SelectAllItem:function (bSel) {
},
/**
* 获取item项个数
* @return {Number}
*/
GetAllItemCount:function () {
},
}