Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 22462 invoked from network); 7 May 2010 18:55:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 18:55:44 -0000 Received: (qmail 98766 invoked by uid 500); 7 May 2010 18:55:44 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 98661 invoked by uid 500); 7 May 2010 18:55:44 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 98653 invoked by uid 99); 7 May 2010 18:55:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 18:55:44 +0000 X-ASF-Spam-Status: No, hits=-1.5 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.104 as permitted sender) Received: from [17.148.16.104] (HELO asmtpout029.mac.com) (17.148.16.104) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 18:55:36 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.13] ([173.76.183.203]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L2200JSSCK0ZB00@asmtp029.mac.com> for user@pivot.apache.org; Fri, 07 May 2010 11:55:16 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005070118 Subject: Re: skin vs renderer From: Greg Brown In-reply-to: Date: Fri, 07 May 2010 14:55:12 -0400 Message-id: <1983A49E-7DA2-406B-9561-B1B8572D60CA@mac.com> References: To: user@pivot.apache.org X-Mailer: Apple Mail (2.1078) 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