全称 mx.layouts.TableLayout
命名空间 mx.layouts
TableLayout
继承层次结构 TableLayoutAbstractLayout
源文件 ~\mx\scripts\layouts\TableLayout.js
提供一个表格式布局控件。

示例 1

以下是一个TableLayout的示例。
JavaScript 代码
var container1 = new mx.containers.Container({ layout: "TableLayout", height:"200px", width:"400px", layoutOptions: { isShowBorder: true, rowNumber: 7, colNumber: 5 } }); var textEditor1 = new mx.editors.TextEditor({ layoutConfigs: { rowIndex : 0, colIndex : 0, rowSpan: 2, colSpan: 1 }, text: 'test1', width: "100%" }); var textEditor2 = new mx.editors.TextEditor({ layoutConfigs: { rowIndex : 2, colIndex : 2, rowSpan: 3, colSpan: 3 }, text: 'test2', width: "160px" }); container1.addControl(textEditor1); container1.addControl(textEditor2);

构造函数

名称 说明
TableLayout() 构建 TableLayout 类的新实例。

初始化函数

名称 说明
init()

方法

名称 说明
calculateCells()
_init() 受保护的。

字段

名称 说明
owner 设置和获取一个容器实例,表示布局控件所作用的容器。
typeName 设置和获取布局控件的类型。

构造函数详细信息

TableLayout() 方法

构建 TableLayout 类的新实例。

初始化函数详细信息

init() 方法


方法详细信息

calculateCells() 方法


_init() 方法

受保护的。

继承自


字段详细信息

owner 字段

设置和获取一个容器实例,表示布局控件所作用的容器。

继承自


typeName 字段

设置和获取布局控件的类型。

继承自