Monday, November 1, 2010

Re: How can I create a CellTree of Anchor nodes?

We don't provide an AnchorCell, buts its easy to create one.  Just extend AbstractCell and override the render() method to render a hyperlink into the SafeHtmlBuilder.

FYI - decitrig is correct.  The old Showcase used Hyperlinks. The new Showcase handles selection via the selection model and updates the history token.

Thanks,
John LaBanca
jlabanca@google.com


On Sun, Oct 31, 2010 at 1:51 PM, decitrig <rwsims@gmail.com> wrote:


On Oct 16, 5:50 pm, Tamer Sezgin <tamer.sez...@gmail.com> wrote:
> It's a little complex example, but the left menu of Showcase application is
> implemented using CellTree and contains Hyperlinks..
>    http://gwt.google.com/samples/Showcase/Showcase.html
> I assume after figuring out how it works, it should be easy to replace
> Hyperlinks with Anchors (if you really need to link to external URLs).

I'm interested in the same thing, so I found this post and had a look
at the showcase code here:
http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client
As far as I can tell, it does nothing of the kind. It uses a selection
model to fire history change events, not hyperlinks. Were you
referring to an older version?

> On Sat, Oct 16, 2010 at 6:55 AM, Blackberet <ramonjsanti...@gmail.com>wrote:
>
>
>
>
>
>
>
> > I have a CellTree, I would like to add Anchor nodes to it. There is no
> > AnchorCell available. What do I need to use in order to implement this
> > functionality?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment