On Tuesday, May 21, 2013 9:51:10 PM UTC+2, Joel wrote: > > I have a cell that contains some text. I would like to create links within > the text that are clickable. > > "For, example abc and xyz should be links." > > I figured on using InlineLabel to create the links within the text. > However, since the whole thing is a cell I can't click on the individual > label/links. > > 1) Is there a way to turn off "click grabbing" at the CellList level, so > my inner links will work? I also need to know which one was clicked? How? >
Make a custom Cell: http://www.gwtproject.org/doc/latest/DevGuideUiCustomCells.html and http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/AbstractCell.html Your "links" will be <span>s with specific class names, and in onBrowserEvent you'll check whether the event target is on of those spans and take action accordingly. Using UiRenderer will make it easier if you can use it: http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Rendering_HTML_for_Cells 2) Is InlineLabel really the appropriate widget to use (I just want to take > an action on the page, not leave the page)? > No, just like any widget. You use Cells, so you can't use widgets (within them). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
