GWT 2.4 DataGrid 行跨度
GWT 2.4 DataGrid row span
是否可以让 DataGrid 的列包含 2、4 等不同行跨度的混合?我在 CustomDataGrid 示例代码 http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid
中遇到了 DataGrid 的 setTableBuilder() 方法
但是在 GWT 2.4 中,setTableBuilder() 方法不存在。对于较旧的 GWT,是否可以实现 DataGrid 小部件的行跨度?
该方法是在提交 642e965 中添加的,该提交在 GWT 2.5 中发布,并且在更高版本中也存在。它是 not a small commit,因为它必须完全替换 DataGrid 和 CellTable 使用外部系统呈现其内容的方式。
This API change required a significant refactor of CellTable because CellTable assumed a grid structure with one row per row value, one cell per column, and a structure consisting of a div inside of a td for every Cell.
您可以仅使用此附加补丁从 2.4 构建自定义 GWT 版本,或者在 类 更改后复制它们并将其与 GWT 2.4 一起使用。这似乎是可能的,因为没有对编译器进行任何更改,但这是一个不小的更改。
此外,GWT 2.4.0 已有五年多的历史 - 在此期间肯定引入了许多其他修复程序。
是否可以让 DataGrid 的列包含 2、4 等不同行跨度的混合?我在 CustomDataGrid 示例代码 http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid
中遇到了 DataGrid 的 setTableBuilder() 方法但是在 GWT 2.4 中,setTableBuilder() 方法不存在。对于较旧的 GWT,是否可以实现 DataGrid 小部件的行跨度?
该方法是在提交 642e965 中添加的,该提交在 GWT 2.5 中发布,并且在更高版本中也存在。它是 not a small commit,因为它必须完全替换 DataGrid 和 CellTable 使用外部系统呈现其内容的方式。
This API change required a significant refactor of CellTable because CellTable assumed a grid structure with one row per row value, one cell per column, and a structure consisting of a div inside of a td for every Cell.
您可以仅使用此附加补丁从 2.4 构建自定义 GWT 版本,或者在 类 更改后复制它们并将其与 GWT 2.4 一起使用。这似乎是可能的,因为没有对编译器进行任何更改,但这是一个不小的更改。
此外,GWT 2.4.0 已有五年多的历史 - 在此期间肯定引入了许多其他修复程序。