Is it possible to add blur event to this widget ? (the same for all cells below
com.google.gwt.cell.client.AbstractEditableCell). Unfortunately all consumed
events are hard coded in the constructor so cannot inherit it. So the only way
I found was to use decorator pattern like but I'm not happy with that.
class MyCheckBoxCell extends
AbstractEditableCell<Boolean, Boolean> {
private final CheckboxCell checkBox;
MyCheckBoxCell(boolean handleSelection) {
super("change", "keydown", "blur");
this.checkBox = new CheckboxCell(false, handleSelection);
}
@Override
public void onBrowserEvent(Context context, Element parent,
Boolean value, NativeEvent event,
ValueUpdater<Boolean> valueUpdater) {
checkBox.onBrowserEvent(context, parent, value, event,
valueUpdater);
String type = event.getType();
if (type.equals("blur")) {
/// do something
}
}
... (other methods)
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/ZU2J59gLCl4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.