Re: How to add a link (anchor) to a CellTable?

2012-06-11 Thread Arash
public class ClickableSafeHtmlCell extends AbstractCellSafeHtml { /** * Construct a new ClickableSafeHtmlCell. */ public ClickableSafeHtmlCell() { super(click, keydown); } @Override public void onBrowserEvent(Context context, Element parent, SafeHtml value, NativeEvent event,

How to add a link (anchor) to a CellTable?

2012-01-28 Thread Magnus
Hi, can I add an anchor object to a cell table? I just found TextColumn as the only reasonable subclass of Column: TextColumnEntry col_myCol = new TextColumnEntry() But I need a type where I can insert an anchor... And hints? Thanks Magnus -- You received this message because you are

Re: How to add a link (anchor) to a CellTable?

2012-01-28 Thread kim young ill
write your own cell override method render hth On Sat, Jan 28, 2012 at 1:46 PM, Magnus alpineblas...@googlemail.comwrote: Hi, can I add an anchor object to a cell table? I just found TextColumn as the only reasonable subclass of Column: TextColumnEntry col_myCol = new TextColumnEntry()

Re: How to add a link (anchor) to a CellTable?

2012-01-28 Thread Magnus
Thank you, but it is not clear yet: Could you please mention the class that I should subclass? And what should I use instead of TextCell? Thanks! TextColumnEntry myCol = new TextColumnEntry() { @Override public String getValue(Entry obj) { return (obj.myAttribute); } }; --

Re: How to add a link (anchor) to a CellTable?

2012-01-28 Thread Andrea Boscolo
See docs: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html -- 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/-/GVWxakQw59sJ.

Re: How to add a link (anchor) to a CellTable?

2012-01-28 Thread Jens
You will use the Column class directly and tell it to use your custom cell: Column col = new ColumnEntry, String(new YourCustomCell()) { @Override public String getValue(Entry obj) { return (obj.myAttribute); } } How to implement a custom cell can be found in the documentation.

Re: How to add a link (anchor) to a CellTable?

2012-01-28 Thread kim young ill
check out the gwt-showcase for some examples. On Sat, Jan 28, 2012 at 4:37 PM, Andrea Boscolo andrew...@gmail.com wrote: See docs: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html -- You received this message because you are subscribed to the Google Groups Google