gwt-2.2-celltable

GWT Table that supports sorting, scrolling and filtering

*爱你&永不变心* 提交于 2020-01-12 13:51:44
问题 I have a project using GWT and it displays data in a table. I need a Table for GWT that supports: sorting by particular column scrolling the data, while the header is immobile filtering rows for data searched in the table The project is being created for internal purpose of the company, so I look for a solution that does not require commercial licensing for such uses. 回答1: The standard CellTable supports sorting. (Hopefully more features will come soon.) 回答2: Here is a table supporting

how to add column of ClickableTextCells to cellTable

不羁岁月 提交于 2019-12-19 07:13:09
问题 hi all i need a simple example show me how to add column of ClickableTextCells to cellTable thanks. 回答1: Column<YerValueObject, String> newCol = new Column<YerValueObject, String>(new ClickableTextCell()) { @Override public String getValue(YearValueObject obj) { return obj.someMethod(); } }; newCol.setFieldUpdater(new FieldUpdater<YerValueObject, String>() { @Override public void update(int index, YerValueObject obj, String value) { //do whatever you need to here... } }); table.addColumn

create link in table cell and open float popup by click from it

感情迁移 提交于 2019-12-11 04:39:00
问题 I have a CellTable and need a column with hyper links and onclick handlers inside cells. 1st question, what am doing wrong if I have: Column<MyObject, Anchor> linkColumn = new Column<MyObject, Anchor>( new AnchorCell()) { @Override public Anchor getValue(final obj) { Anchor link = new Anchor("link"); link.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert("clicked "); } }); return link; } }; cellTable.addColumn(linkColumn, "link column"); ...

GWT Customize CellList Multi-Selection Model for Mobile Devices

坚强是说给别人听的谎言 提交于 2019-12-10 11:08:26
问题 I have an application, that uses the MultiSelectionModel, and it works great, but I need the site I'm developing to work on mobile devices, and so I can't use the keyboard to assist in selecting the elements (since it doesn't exist). EX: On the desktop I just hold ctrl and click on all the element that I want to select. So on the mobile device, I would like to modify the default behavior of the MultiSelectionModel so that when you click on a CellList item, it toggles the selection state of

GWT - How to sort celltable column?

泄露秘密 提交于 2019-12-07 22:50:15
问题 I'm reading about how to add column sort functions to a cell table but I'm not understanding the code provided by google. Following is my celltable, How would I add make the nameColumn sort-able? public class CellTableExample implements EntryPoint { private static class Contact { private String address; private String name; public Contact(String name, String address) { super(); this.address = address; this.name = name; } } // The list of data to display. private static List<Contact> CONTACTS

GWT Customize CellList Multi-Selection Model for Mobile Devices

左心房为你撑大大i 提交于 2019-12-06 12:16:46
I have an application, that uses the MultiSelectionModel, and it works great, but I need the site I'm developing to work on mobile devices, and so I can't use the keyboard to assist in selecting the elements (since it doesn't exist). EX: On the desktop I just hold ctrl and click on all the element that I want to select. So on the mobile device, I would like to modify the default behavior of the MultiSelectionModel so that when you click on a CellList item, it toggles the selection state of that item. I have looked through the source for it and cannot see anyway to implement the behavior that I

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 programmatically select CheckBoxCell

天大地大妈咪最大 提交于 2019-12-05 00:35:29
问题 I've got a cellTable with a CheckBoxCell column. What I'm trying to do is to have a set of buttons outside the celltable which let the user to automatically check/uncheck a different set of elements (for example check all / uncheck all, but I'd like to have more complex rules). What I don't understand is how to access the element (I suppose via row/col values ???) and get/set the value. Can anyone help me to figure out how to resolve it? 回答1: Assuming what you want is to bind the checkbox to

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

GWT CellTable selection and single click on CheckBoxCell

假装没事ソ 提交于 2019-12-04 14:05:04
问题 I've got a CellTable wich work with SingleSelectionModel to make single selection and show some information into details panel. Also I've got CheckBoxCell column into this CellTable which work with another MultipleSelectionModel to make mass delete operation. When I try to click on check box in CheckBoxCell column GWT selects row and after second click on checkbox it change checkbox state. So we should make two clicks, but I need to do it (change checkbox state) by one click. I tried