Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
改进gwt中的CellEditor布局_Gwt - Fatal编程技术网

改进gwt中的CellEditor布局

改进gwt中的CellEditor布局,gwt,Gwt,我在我们的项目中使用gwt孵化器表。我需要在点击字段时将其中一列文本显示为弹出窗口。原因是数据可能有点大,调整表列的大小以读取该列中的值看起来不太好 因此,我们认为如果单击属性,我们可以显示一个带有文本的弹出窗口。我尝试使用CellEditor实现它,如下所示: TextCellEditor cellEditor = new TextCellEditor() { @Override public boolean onAccept()

我在我们的项目中使用gwt孵化器表。我需要在点击字段时将其中一列文本显示为弹出窗口。原因是数据可能有点大,调整表列的大小以读取该列中的值看起来不太好

因此,我们认为如果单击属性,我们可以显示一个带有文本的弹出窗口。我尝试使用CellEditor实现它,如下所示:

TextCellEditor cellEditor = new TextCellEditor() {
                @Override
                public boolean onAccept() { 
                    return true;
                }
            };

            cellEditor.setHeight("100px");
            columnDef.setCellEditor(cellEditor);

但问题是,单元格编辑器弹出窗口中的实际文本框仍然没有增加高度。通过cell editor或其他方式在该列上显示弹出窗口,或通过单击?

无需使用cell editor,我所做的是在表列值字段中添加一个小图标,并在单击时添加一个弹出窗口