Panel
类:Panel组件类
Constructor
new Glodon.Bimface.Tiles.UI.Panel(option)
构造面板组件
Parameters:
| Name | Type | Description | 
|---|---|---|
| option | Object | 构造标签的配置项 | 
Methods
addClass(class)
对组件增加CSS样式
Parameters:
| Name | Type | Description | 
|---|---|---|
| class | String | CSS类名 | 
addControl(control, option, index)
添加控件
Parameters:
| Name | Type | Description | 
|---|---|---|
| control | Object | UI控件,对应Glodon.Bimface.Tiles.UI下的组件相关类 | 
| option | Object | 添加控件的选项(选填) | 
| index | Number | 控件插入位置,index为0时控件插入至面板第一个位置,1为第二个位置,以此类推,为-1时则将该控件放至面板最后 | 
getAllControls()
根据筛选条件获取控件对象
Returns:
| Type | Description | 
|---|---|
| Array | 由控件对象组成的列表 | 
getControl(condition)
根据筛选条件获取控件对象
Parameters:
| Name | Type | Description | 
|---|---|---|
| condition | Object | 筛选条件 | 
Returns:
| Type | Description | 
|---|---|
| Object | UI控件,对应Glodon.Bimface.Tiles.UI下的组件相关类 | 
getDimensions()
获取组件的尺寸信息
Returns:
| Type | Description | 
|---|---|
| Object | 组件的尺寸信息 | 
getId()
获取ID
Returns:
| Type | Description | 
|---|---|
| String | ID | 
getPosition()
获取组件的位置信息
Returns:
| Type | Description | 
|---|---|
| Object | 组件的位置信息 | 
getTitle()
获取面板标题文字内容
Returns:
| Type | Description | 
|---|---|
| String | 面板标题文字内容 | 
hide()
隐藏
indexOf(control)
获取指定控件的序号
Parameters:
| Name | Type | Description | 
|---|---|---|
| control | Object | UI控件,对应Glodon.Bimface.Tiles.UI下的组件相关类 | 
Returns:
| Type | Description | 
|---|---|
| Number | 控件在面板中的序号 | 
isVisible()
获取可见性状态
Returns:
| Type | Description | 
|---|---|
| Boolean | 可见性状态 | 
onClose(event)
面板关闭的事件
Parameters:
| Name | Type | Description | 
|---|---|---|
| event | Function | 面板关闭时执行的函数 | 
removeClass(class)
对组件移除CSS样式
Parameters:
| Name | Type | Description | 
|---|---|---|
| class | String | CSS类名 | 
removeControl(control)
移除控件
Parameters:
| Name | Type | Description | 
|---|---|---|
| control | Object | UI控件,对应Glodon.Bimface.Tiles.UI下的组件相关类 | 
setPosition(position)
设置组件的位置信息
Parameters:
| Name | Type | Description | 
|---|---|---|
| position | Object | 组件的位置信息 | 
setTitle(text)
设置面板标题文字内容
Parameters:
| Name | Type | Description | 
|---|---|---|
| text | String | 面板标题文字内容 | 
show()
显示
← Label RadioGroup →