hi all i need a simple example show me how to add column of ClickableTextCells to cellTable
thanks.
Create a Column overriding the onBrowserEvent method.
Like this:
new Column(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", "");
}
};