テキストセルからonclickイベントをキャプチャしようとしています。なぜクリックイベントが発生しないのですか? -GWT-Textcellがonclickイベントを発生しない
TextCell tempCell = new TextCell() {
@Override
public void onBrowserEvent(Cell.Context context, Element parent, String value,
NativeEvent event, ValueUpdater<String> valueUpdater) {
if ("click".equals(event.getType())) {
Window.alert("Clicked me from cell");
}
}
};
Column<Contact, String> tempColumn = new Column<Contact, String>(tempCell) {
@Override
public String getValue(Contact object) {
return object.address;
}
};
table.addColumn(tempColumn, "Address");
おかげで..私種類の同じような方法で自分のコードを書いた – ravi