XUIIntegratedCabinList()

Methods

AddItem(bDsiplay, bleftNormal, strLeftName, strRightName, strRightTitle)

添加一项
Parameters:
Name Type Description
bDsiplay Boolean 是否显示
bleftNormal Boolean true代表正常
strLeftName String 中左名称
strRightName String 中右名称
strRightTitle String 标题

GetIndex()

获取下标

RemoveAll()

删除列表所有

RemoveByIndex(nIndex)

按索引删除一项
Parameters:
Name Type Description
nIndex Number 索引从0开始

SearchByName(strText)

按名称检索
Parameters:
Name Type Description
strText String

SetCenterLeftTextByIndex(nIndex, strName)

索引改中左文本
Parameters:
Name Type Description
nIndex Number 索引从0开始
strName String 文本名称
Properties:
Name Type Description
CenterLeftTextByIndex Collection [0,"k0+50"]

SetCenterRightTextByIndex(nIndex, strName)

索引改中右文本
Parameters:
Name Type Description
nIndex Number 索引从0开始
strName String 中右文本
Properties:
Name Type Description
CenterRightTextByIndex Collection [0,"上入口"]

SetItemByIndex(nIndex, strTitle, strCenterLeftText, strCenterRightText, bLeftPic, bRightIcon)

按索引修改整列内容
Parameters:
Name Type Description
nIndex Number 索引从0开始
strTitle String 项的标题
strCenterLeftText String 中左文本
strCenterRightText String 中右文本
bLeftPic Boolean true表正常
bRightIcon Boolean true代表点击
Properties:
Name Type Description
ItemByIndex Collection [0,"综合舱","k0+50","上入口",false,true]

SetLeftBigPicByIndex(nIndex, booPic)

索引改左侧图片
Parameters:
Name Type Description
nIndex Number 索引从0开始
booPic Boolean true代表正常
Properties:
Name Type Description
LeftBigPicByIndex Collection [0,true]

SetMidLeftTextColorByIndex(nIndex, strColor)

中左文本颜色
Parameters:
Name Type Description
nIndex Number 索引从0开始
strColor String 文字颜色
Properties:
Name Type Description
MidLeftTextColorByIndex Collection [0,"0xff01de7d"]

SetMidRightTextColorByIndex(nIndex, strColor)

中右文本颜色
Parameters:
Name Type Description
nIndex Number 索引从0开始
strColor String 文字颜色
Properties:
Name Type Description
MidRightTextColorByIndex Collection [0,"0xff000000"]

SetRightIconByIndex(nIndex, bRightIcon)

索引设右图标
Parameters:
Name Type Description
nIndex Number 索引从0开始
bRightIcon Boolean true代表已点击
Properties:
Name Type Description
RightIconByIndex Collection [0,true]

SetTitleByIndex(nIndex, strTitle)

按索引设置标题
Parameters:
Name Type Description
nIndex Number 索引从0开始
strTitle String 项的标题
Properties:
Name Type Description
TitleByIndex Collection [0,"综合舱"]

SetTitleColorByIndex(nIndex, strColor)

标题颜色
Parameters:
Name Type Description
nIndex Number 索引从0开始
strColor String 文字颜色
Properties:
Name Type Description
TitleColorByIndex Collection [0,"0xff000000"]