Reviewers: rdayal,
Description:
Passing the row index to the FieldUpdater for a CompositeCell instead of
passing -1 all the time.
Issue: 7050
Please review this at http://gwt-code-reviews.appspot.com/1618803/
Affected files:
M user/src/com/google/gwt/cell/client/CompositeCell.java
Index: user/src/com/google/gwt/cell/client/CompositeCell.java
===================================================================
--- user/src/com/google/gwt/cell/client/CompositeCell.java (revision 10802)
+++ user/src/com/google/gwt/cell/client/CompositeCell.java (working copy)
@@ -216,15 +216,16 @@
return hasCell.getCell().isEditing(context, cellParent,
hasCell.getValue(object));
}
- private <X> void onBrowserEventImpl(Context context, Element parent,
+ private <X> void onBrowserEventImpl(final Context context, Element
parent,
final C object, NativeEvent event, final ValueUpdater<C>
valueUpdater,
final HasCell<C, X> hasCell) {
ValueUpdater<X> tempUpdater = null;
final FieldUpdater<C, X> fieldUpdater = hasCell.getFieldUpdater();
if (fieldUpdater != null) {
tempUpdater = new ValueUpdater<X>() {
+ @Override
public void update(X value) {
- fieldUpdater.update(-1, object, value);
+ fieldUpdater.update(context.getIndex(), object, value);
if (valueUpdater != null) {
valueUpdater.update(object);
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors