问题标签 [celltable]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
553 浏览

internet-explorer - 为什么在我安装的 Internet Explorer 9 中 GWT CellTable 呈现不正确?

我正在开发一个 Java GWT & App Engine 应用程序并使用 CellTable 来显示用户上传到 Blobstore 的项目。

一切正常,看起来像这样:

火狐渲染

但是今天我发现我的 IE9 有一个问题。我知道这只是我的 IE9 版本,因为它可以在另一台使用 IE9 标准设置的计算机上正常工作,并且在 IE8 中也可以正常工作。

看起来呈现表格的 JavaScript 运行不正确,但启用了脚本,否则应用程序根本无法运行。这就是我所看到的:

Internet Explorer 是垃圾

我已经尝试在 IE 中将我的 IE9 重置为出厂默认设置,但我仍然遇到问题。

我无法卸载并重新安装,因为在真正的 Microsoft 风格中,它不会出现在卸载程序菜单中。掌心

我无法再次安装它,因为它已经安装了:/

如果有人有任何想法,或者可以指出我正确的方向,我将不胜感激。

谢谢大家!

0 投票
1 回答
9316 浏览

gwt - 使用 UiBinder 定义 GWT CellTables

如果我在 MyView.ui.xml UiBinder 文件中定义我的 CellTable,如下所示:

然后以编程方式将列添加到 CellTable,一切正常。

但为了减少样板代码,我还想在我的 UiBinder 文件中定义表列。我试过这个:

但它会产生以下错误:

[错误] [方言] - 发现意外的子元素元素 addStyleNames='{style.titleColumn}'ui:field='titleColumn'> (:33)

如何使用 UiBinder 定义整个 CellTable?

0 投票
1 回答
62 浏览

java - 如何在表格单元格内放置带有 mouseClick 监听器的文本?

我需要在 celltable 的单元格内放置一个带有监听器的文本。我也想在点击后渲染一个窗口。我不知何故未能实现这一目标。请注意,我是 gwt 的新手。

0 投票
2 回答
1254 浏览

gwt - 可排序的 CellTable 列的标题没有响应

我正在使用 GWT 2.5 创建一个带有可排序日期列的 CellTable。

我的代码如下:

使用此代码,数据将显示在表格中,并出现列上的排序箭头。但是,当我单击可排序列的标题时,什么也没有发生。排序顺序不会改变,行不会重新排列。

任何人都可以在这里发现问题吗?此代码与Google 自己的示例中的 代码几乎相同。

0 投票
1 回答
211 浏览

events - GWT 事件不适用于运行时添加的元素

  • 我创建了一个新的 CellTable。
  • 覆盖 onBrowserEvent2 以处理鼠标事件。
  • 向表中添加一个新元素。

可悲的是,事件侦听器没有处理添加的元素。它仅适用于初始元素。

0 投票
4 回答
5481 浏览

java - gwt 应用程序中的复合单元

我正在尝试创建一个由 TextCell 和 ButtonCell 组成的 CompositeCell。我想通常将 CompositeCell 添加到 Column 中,然后将 Column 添加到 CellTable 中。但是我无法弄清楚该列的实例应该如何。特别是我在以下代码中找不到它的类型参数:

创建自定义类FilterInfo的CompositeCell的方法(有必要吗?)是:

}

如果有任何迹象表明可以调整代码或其他建议以创建所需的 CompositeCell 并将其正确添加到 CellTable 中,我将不胜感激。

0 投票
1 回答
2717 浏览

gwt - 向 ButtonCell 添加样式

我知道我的问题最初被认为是指“非常新手”级别,但我花了很多时间来寻找答案。我在 gwt 应用程序中使用了 DataGrid,并附加了各种特定的 Cell 小部件(即 TextCell、ButtonCell)。我关心的是如何通过自定义 css 向 ButtonCell 的按钮添加和处理样式。实现 ButtonCells 列的代码如下:

那么,如何为按钮(而不是整个单元格)添加样式?我怀疑我也应该覆盖渲染功能,但是我无法弄清楚如何应用样式

0 投票
1 回答
312 浏览

celltable - GWTP:显示 CellTable 的麻烦

嗨,我是 GWT 的新手,所以也是 GWTP 的新手。

我尝试使用 CellTables,并决定首先在 developer.google.com/web-toolkit/doc/2.4/DevGuideUiCellWidgets#celltable 上构建一个简单的 GWT 文档。我调整了一些东西来匹配 GWTP MVP 设计。

首先,我在 View.ui.xml 文件上创建了 Celltable:

然后,我创建了一个联系人类:

在我的 View.java 文件中:

最后在我的 Presenter.java 文件中:

一切对我来说似乎都很好,但是当我尝试这段代码时没有显示 CellTable ......而且我没有收到任何错误......

在此先感谢您的帮助!

0 投票
1 回答
1921 浏览

java - GWT - 单元格列表框动态内容

我有一个包含 2 列、名称和他拥有的汽车的单元格表。其中一列(汽车)必须是列表框。person 对象将在 celltable 中呈现为一行。列表框将显示该人拥有的汽车的名称。可以说,

我看过这个展示,它实现了一个带有固定类别的下拉菜单。但我所拥有的是一个下拉列表,其内容将取决于 Person 对象的内容。

我还想捕捉用户在下拉菜单中选择其中一辆车时的事件。任何想法如何做到这一点?

0 投票
3 回答
10392 浏览

gwt - GWT Datagrid does not show data , but contains it

I'm trying to convert a cellTable into adatagrid, because I want to add a search handler later and therefor I need fixed column headers. At the moment I extend the celltable/datagrid class and put the widget into a simplelayoutpanel and add this to my tabpanel.

If I use the celltable, all works fine and the data shows up. If I change the type of the class to datagrid, the data shows sometimes up (The column names are always there). To add something to the table I used setRowData or a dataProvider. If I set breakpoints to delay the loading of the table content, the table does sometimes contain data. If I later call the redraw method for the table, the table shows the correct information. But the table should load automatically the content. At other "positions" of my project I used the datagrid also and it worked in Dialogboxes.

I think there must be a bug with the drawing of the items, because if I call .getRowCount on the table or the deprecated .getDisplayedItems, it returns me the correct number of items which should be in the table. Also if I add a selection model to the table and select a item, the item contains valid data.