No, that approach isn't deprecated. Rich text in TextArea is deprecated. You can use the renderer code in that example as a model.
On May 7, 2010, at 3:49 PM, Robert Piotrowski wrote: > Never mind. You have the renders code in the example. > > But that approach is deprecated now? > > Bob > > On Fri, May 7, 2010 at 2:41 PM, Robert Piotrowski <[email protected]> > wrote: > I want to show results from SOLR in a "Google style". I have a grid style > finished, but the client wants it to look like Google..... > > I'd have to add some kind of yellow colored background for the "hit > highlighting". > > > Bob > > > On Fri, May 7, 2010 at 2:40 PM, Robert Piotrowski <[email protected]> > wrote: > Yes, that's one of the examples I was thinking about. How do you do that? > > > > Bob > > > > > On Fri, May 7, 2010 at 1:55 PM, Greg Brown <[email protected]> wrote: > Hi Robert, > > A skin defines the L&F of a component. A renderer is used by the skin to draw > the component's content. For example, the Terra PushButton skin draws itself > as a gray box with a border, but the skin uses the (default) renderer to draw > the button's icon and text. > > Not quite sure what you mean by "selectable list of text areas". Maybe you > could describe the use case a little more specifically? Are you thinking of > something like what is shown in this tutorial? > > http://pivot.apache.org/tutorials/web-queries.html > > Note that, while support for rich text is currently stubbed out in TextArea, > it isn't actually supported. The classes and APIs that would have supported > it are deprecated for Pivot 1.5 and will be removed in Pivot 1.5.1. The best > way to create text with different fonts and font sizes is to use a > combination of Labels and layout containers such as TablePane and BoxPane. > > Hope this helps. > > Greg > > On May 7, 2010, at 1:56 PM, Robert Piotrowski wrote: > > > What's the difference between a skin and a renderer? > > > > If I wanted to have a selectable list of textareas and each textarea had > > sections with different fonts and font sizes (to make it look like HTML), > > which direction do I take? > > > > I was looking at the ListViewItemRenderer and I don't see where I'd be the > > logic "magic" is for setting something like this at the text level inside a > > textarea. What goes into the render()/renderStyles() method? > > > > Thanks, > > > > Robert > > > >
