XUITimeComboBox()

Methods

GetArrowsColor() → {String}

获得箭头颜色
Returns:
String

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImg() → {String}

获取背景图
Returns:
String

GetBgImgRepeat() → {String}

获取背景图绘制模式
Returns:
String

GetContainerBgColor() → {String}

获得容器背景色
Returns:
String

GetContainerBorderColor() → {String}

获得容器边框色
Returns:
String

GetDropDownBgColor() → {String}

获得下拉框背景色
Returns:
String

GetItemBgColor() → {String}

获得item背景色
Returns:
String

GetMouseHoverColor() → {String}

鼠标经过时的颜色
Returns:
String

GetOptionHeight() → {Number}

获得选项高度
Returns:
Number

GetScrollBarColor() → {Array}

获取滚动条颜色
Returns:
Array

GetScrollBarFacade() → {Array}

获取滚动条样式
Returns:
Array

GetText() → {String}

获得文字内容
Returns:
String

GetTextColor() → {String}

获得文字颜色
Returns:
String

GetTextOffset() → {Array}

获得文字偏移量
Returns:
Array

GetTextPosition() → {String}

获得文字位置
Returns:
String

GetTextSize() → {Number}

获得文字大小
Returns:
Number

GetTime() → {String}

获得时间
Returns:
String

IsDrawBgColor() → {Boolean}

获取是否绘制图标背景色
Returns:
Boolean

IsTimeFomatter() → {Boolean}

获得时间制
Returns:
Boolean

SetArrowsColor(strColor)

箭头颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ArrowsColor Color "0xff2A80D1"

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 "0xffff0000"

SetContainerBgColor(strColor)

容器背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
ContainerBgColor Color "0xff213361"

SetContainerBorderColor(strColor)

容器边框色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
ContainerBorderColor Color "0xff297BCA"

SetDrawBgColor(bDraw)

是否绘制图标背景色
Parameters:
Name Type Description
bDraw Boolean true背景色,false背景图
Properties:
Name Type Description
DrawBgColor Boolean true

SetDropDownBgColor(strColor)

下拉框背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
DropDownBgColor Color "0xff172443"

SetItemBgColor(strColor)

item背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
ItemBgColor Color "0xff172443"

SetMouseHoverColor(strColor)

鼠标经过时的颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
MouseHoverColor Color "0xff000000"

SetOptionHeight(nHeight)

选项高度
Parameters:
Name Type Description
nHeight Number 高度
Properties:
Name Type Description
OptionHeight Number 20

SetScrollBarColor(bgColor, trackColor, ThumbColor, ButtonColor)

滚动条颜色
Parameters:
Name Type Description
bgColor String 背景色
trackColor String 轨道颜色
ThumbColor String 滑块颜色
ButtonColor String 按钮颜色
Properties:
Name Type Description
SetScrollBarColor Collection ["0x0000ff00","0x0000ff00","0xff1e4952","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 [8,10,10,0,0]

SetTextColor(strColor)

文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
TextColor Color "0xff000000"

SetTextOffset(nOffsetLeft, nOffsetRight)

文字偏移量
Parameters:
Name Type Description
nOffsetLeft Number 左偏移量
nOffsetRight Number 右偏移量
Properties:
Name Type Description
TextOffset Number [0,20]

SetTextPosition(StrTextPosition)

文字位置
Parameters:
Name Type Description
StrTextPosition String 位置
Properties:
Name Type Description
TextPosition Combo ["left","center","right"]

SetTextSize(nSize)

文字大小
Parameters:
Name Type Description
nSize Number 文字大小
Properties:
Name Type Description
TextSize Number 16

SetTime(strHour, strMinute)

时间
Parameters:
Name Type Description
strHour String
strMinute String

SetTimeFomatter(bState)

时间制
Parameters:
Name Type Description
bState Boolean true24小时,false12小时
Properties:
Name Type Description
TimeFomatter Boolean true