Create a Column overriding the onBrowserEvent method.
Like this:
new Column<T, String>(new TextCell()) {
@Override
public String getValue(T object) {
return object.getProperty();
}
@Override
public void onBrowserEvent(Context context, Element elem, T object, NativeEvent event) {
// TODO You can check which event you want to catch
Window.open("http://www.stackoverflow.com", "StackOverFlow", "");
}
};
this is the solution if you need to add clickableTextCell to cellTable
Create a
Column
overriding theonBrowserEvent
method.Like this: