gwt-celltable

GWT: Export a CellTable to an image or pdf file

余生长醉 提交于 2020-01-06 02:16:48
问题 I have a CellTable showing data that is plotted in a GFlot SimplePlot. An export of the plot is possible with GFlots integrated function: exportImage = plot.getImage(); Now I would like to export the CellTable too, to show the corresponding data to the plot. Is this possible in some way with GWT on the client-side? It needn't to be the CellTable itself, just the data it shows would suffice. 回答1: I think You can use flash4j library: package com.emitrom.flash4j.demo.client; import com.emitrom

GWT DataGrid multi row header

那年仲夏 提交于 2020-01-05 09:04:07
问题 I am migrating some GWT content from CellTable to DataGrid , mainly for the DataGrid's feature of locking the header row in place as you scroll. With CellTable, the column header text would wrap to the next line if the text phrase was too long. The CellTable's header would dynamically grow in height. This was the default behavior, and I never edited any css files. Can I get this behavior in DataGrid? Do I need a change to my main project css file, or do I make a change to clean.css? Is there

GWT DataGrid multi row header

柔情痞子 提交于 2020-01-05 09:04:05
问题 I am migrating some GWT content from CellTable to DataGrid , mainly for the DataGrid's feature of locking the header row in place as you scroll. With CellTable, the column header text would wrap to the next line if the text phrase was too long. The CellTable's header would dynamically grow in height. This was the default behavior, and I never edited any css files. Can I get this behavior in DataGrid? Do I need a change to my main project css file, or do I make a change to clean.css? Is there

How do I programmatically get info about a CellTable's headers?

自作多情 提交于 2019-12-24 03:52:57
问题 I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring out a programmatic way to get the String headers after the widget is constructed. I add column data like so ... tableWidget.addColumn(column, header); where column is a com.google.gwt.user.cellview.client.Column object and header is a String. how can I get the header from either the column or cell table objects? 回答1: For using protected method you can create a custom class, like

Defining GWT CellTables with UiBinder

故事扮演 提交于 2019-12-21 04:04:35
问题 If I define my CellTable in MyView.ui.xml UiBinder file like this: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:c="urn:import:com.google.gwt.user.cellview.client" ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator' ui:generateLocales='default' xmlns:p1="urn:import:com.google.gwt.user.cellview.client"> ... <g:HTMLPanel> <c:CellTable

How can I put a widget in a CellTable Cell?

末鹿安然 提交于 2019-12-20 10:28:04
问题 I am using CellTable to show my records but now the thing is I want show a select box when user clicks on a cell. One more thing is that select box is my own widget, not a predefined. Can you please suggest to me any method of doing this? 回答1: There's a post on the GWT google group that discusses the answer. Basically you create your custom widget as normal, and inside the render function you use widget.getElement().getInnterHTML(). @Override public void render(com.google.gwt.cell.client.Cell

Look up GWT CellTable header style/s?

[亡魂溺海] 提交于 2019-12-13 18:56:53
问题 How can TH style name/s of a GWT CellTable's heading be looked up programatically? I have looked at the Client Bundle documentation but it isn't immediately obvious to me how it all fits together. Thanks. 回答1: Not sure exactly what you want to do when accessing the TH style names. If you want to override the standard css style of a celltable header, here are some of the css styles you can override to change the Look and Feel of the component. .cellTableFirstColumnHeader {}

GWT Datagrid : Inserting widget into the column

落爺英雄遲暮 提交于 2019-12-12 01:18:08
问题 I am trying to insert a textbox inside a datagrid column. I know I could have gone with TextCell or EditTextCell but for some reason I went with TextBox. I went with the following approach Cell<String> cell = new AbstractCell<String>() { @Override public void render( com.google.gwt.cell.client.Cell.Context context, String value, SafeHtmlBuilder sb ) { FlowPanel fp = new FlowPanel(); TextBox tb = new TextBox(); tb.setText( value ); fp.add( tb ); sb.appendEscaped( fp.getElement().getString() );

Unable to sort the Celltable column

自作多情 提交于 2019-12-11 19:31:59
问题 I am trying to sort my CellTable and I am following the advice mentioned in the following example and the SO answer which are here. http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCellTable CellTable: dynamically reordering rows but none of the solution is working. Here is my code please select me how can I enable the sorting on the table. private void setComparator(ColumnSortEvent.ListHandler<MyModel> myHandler) { table.getColumn(0).setSortable(true); myHandler

How to add Widget as a Cell in Cell Table GWT

不问归期 提交于 2019-12-10 11:02:43
问题 Now I'm stuck in issue of pagination the widgets in GWT. I'm using Cell table to display a list of instances of an UI Binder class of mine (Ex: LocationView). http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable This is the showcase of the CellTable. Now I want to add my widget (UI Binder class) to each cell of the table . It will look somehow like this In this Cell Table, each cell is this widget (LocationView - an UI Binder Class): So How can I create this table using cell