gwt-celltable

Set default sort order for initial header click on gwt cell table

假如想象 提交于 2019-12-10 03:54:29
问题 I have a GWT CellTable with sortable columns very similar to the developer's guide example (http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting). However, I would like to have certain columns sort descending instead of ascending by default. That is, if column A is not currently sorted and I click on it's header, I want column A to be sorted descending on that first click and ascending on the second click. But I do still want other columns to sort as they

GWT CellTable tooltip not working properly

与世无争的帅哥 提交于 2019-12-07 16:02:25
问题 I am using a CellTable and I want to show a tooltip whenever I hover over any of the cell. My code is working fine but the tooltip is not changing its position. What I mean to say is, if I hover over cell 1 tooltip shows and then if I hover over cell 100, the tooltip data changes but the tooltip still shows at cell 1 . I am using following code: cellTable.addCellPreviewHandler(new Handler<List<String>>() { @Override public void onCellPreview(CellPreviewEvent<List<String>> event) { if (

How to avoid CellList/Table from automatically scrolling to selected item when visible range is changed

人走茶凉 提交于 2019-12-07 07:09:52
问题 I was implementing a custom CellTable that has a infinite scroll feature using the CellList showcase example ( http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList ). However, I found a feature in CellList/Table that is undesirable in this case: changing visible range after clicking an item would cause the List/Table to be automatically scrolled to the selected item. you can try the showcase example in above to see the exact same behavior. When no item is selected, the infinite

GWT EditTextCell : How to increase editable TextBox width in EditTextCell?

不打扰是莪最后的温柔 提交于 2019-12-06 07:47:59
问题 I am using GWT2.3 in my project. I want to increase editableTextBox width when user click on editableTextCell. Problem is My Column width is 200 Px. when user clicks on editableTextCell then that TextBox width is around 125px in EditableTextCell is less as compare to column width. I added EditTextCell in Celltable's column Column stringColumn = new Column(new EditTextCell()) { // My Code } cellTable.addColumn(stringColumn, "MyColumn"); cellTable.setColumnWidth(checkBoxColumn, 200, Unit.PX); I

GWT CellTable tooltip not working properly

雨燕双飞 提交于 2019-12-06 00:32:25
I am using a CellTable and I want to show a tooltip whenever I hover over any of the cell. My code is working fine but the tooltip is not changing its position. What I mean to say is, if I hover over cell 1 tooltip shows and then if I hover over cell 100, the tooltip data changes but the tooltip still shows at cell 1 . I am using following code: cellTable.addCellPreviewHandler(new Handler<List<String>>() { @Override public void onCellPreview(CellPreviewEvent<List<String>> event) { if ("mouseover".equals(event.getNativeEvent().getType())) { Element cellElement = event.getNativeEvent()

Set default sort order for initial header click on gwt cell table

雨燕双飞 提交于 2019-12-05 06:40:44
I have a GWT CellTable with sortable columns very similar to the developer's guide example ( http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting ). However, I would like to have certain columns sort descending instead of ascending by default. That is, if column A is not currently sorted and I click on it's header, I want column A to be sorted descending on that first click and ascending on the second click. But I do still want other columns to sort as they currently do - using ascending order on the first click. Aside from the Column.setSortable(boolean) method

GWT EditTextCell : How to increase editable TextBox width in EditTextCell?

霸气de小男生 提交于 2019-12-04 14:50:43
I am using GWT2.3 in my project. I want to increase editableTextBox width when user click on editableTextCell. Problem is My Column width is 200 Px. when user clicks on editableTextCell then that TextBox width is around 125px in EditableTextCell is less as compare to column width. I added EditTextCell in Celltable's column Column stringColumn = new Column(new EditTextCell()) { // My Code } cellTable.addColumn(stringColumn, "MyColumn"); cellTable.setColumnWidth(checkBoxColumn, 200, Unit.PX); I tried following way to increase TextBox width but problem is I cannot edit in textbox + focus not

Defining GWT CellTables with UiBinder

两盒软妹~` 提交于 2019-12-03 12:20:25
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 addStyleNames='{style.cellTable}' pageSize='15' ui:field='cellTable' width="100%"> </c:CellTable> </g:HTMLPanel>

How can I put a widget in a CellTable Cell?

元气小坏坏 提交于 2019-12-02 22:38:53
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? John 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.Context context, String value, SafeHtmlBuilder sb) { if (value != null) { MyWidget widget = new

Why are there no decent examples of CompositeCell in use within a CellTable?

烂漫一生 提交于 2019-12-01 19:13:49
问题 I have scoured GoogleCode, GWT ShowCase, GWT Developer Notes, and Google Groups for some inkling as to how to get/set values of a CompositeCell. There is no one definitive example that explains how to use it within a CellTable. Let's stare at some code... first an abstract class... public abstract class ToggleableGrid<T> extends CellTable<T> { private static final String DEFAULT_TABLE_WIDTH = "100%"; private static final DisplayMode DEFAULT_MODE = DisplayMode.VIEW; protected void setDefaults(