Passing the row index to the FieldUpdater for a CompositeCell instead of passing -1 all the time.
Issue: 7050
Review at http://gwt-code-reviews.appspot.com/1618803
Review by: rdayal@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10822 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/cell/client/CompositeCell.java b/user/src/com/google/gwt/cell/client/CompositeCell.java
index 34d2b09..8e83e0e 100644
--- a/user/src/com/google/gwt/cell/client/CompositeCell.java
+++ b/user/src/com/google/gwt/cell/client/CompositeCell.java
@@ -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);
}