gwt-2.2

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

GWT (event.getCharCode) behaves differently in IE and Firefox

流过昼夜 提交于 2019-12-12 11:53:05
问题 I was going through the tutorial available on GWT website for StockWatcher application and testing the application as described in Step4: Manage Events on the Client. Below piece of code behaves differently in Firefox and IE7. In IE7 this works well, i.e. If I enter some junk characters in Text field and hit Enter " event.getCharCode() == KeyCodes.KEY_ENTER " line gets executed successfully and I could see an alert message. However this same line does not work, if I use Firefox. When I use

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