Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F80562FE for ; Tue, 12 Jul 2011 23:36:59 +0000 (UTC) Received: (qmail 34057 invoked by uid 500); 12 Jul 2011 23:36:59 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 34007 invoked by uid 500); 12 Jul 2011 23:36:58 -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 33999 invoked by uid 99); 12 Jul 2011 23:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 23:36:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.159.29.9] (HELO mailstore05.sysedata.no) (195.159.29.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 23:36:52 +0000 Received: from [95.34.243.130] (helo=[10.0.1.190]) by mailstore05.sysedata.no with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QgmVC-0006CJ-LS for user@pivot.apache.org; Wed, 13 Jul 2011 01:36:30 +0200 Message-ID: <4E1CDA83.4040907@syse.no> Date: Wed, 13 Jul 2011 01:36:35 +0200 From: SYSE | Edvin Organization: SYSE User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: user@pivot.apache.org Subject: Re: IconView in Pivot References: <4E1C6E57.3060401@syse.no> <4E1C71FC.7030602@syse.no> <4E1C73D2.3090508@syse.no> <670495DD-5CBE-43F6-8451-A3672441F4DD@verizon.net> <4E1C7792.2060500@syse.no> In-Reply-To: <4E1C7792.2060500@syse.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Den 12.07.2011 18:34, skrev SYSE | Edvin: > Den 12.07.2011 18:29, skrev Greg Brown: >> You might want to look at ListView - TableView is a bit more complex. > > Ah ofcourse :) Thanks, I'll take this exercise to get to know > painting/skins etc a little better :) I implemented a GridView component mostly modelled after ListView, complete with skin, events, keyboard navigation, selection (including multi) and binding. It's only painting components within the clipbounds and seems to be very performant. See a short demo here: https://edvin.viewscreencasts.com/2cd0ac2c9795422f875f8f048e3f8f80 I pulled some facebook photos and names, and use the default ItemRenderer. I would like to contribute this to Pivot when it is done. I will try to polish it a bit after work tomorrow and show you the code :) I have three questions: - Should it support checkboxes? - Should it support databinding in the same way as ListView does? - I saw on https://issues.apache.org/jira/browse/PIVOT-276 that it was suggested that it had a fixed renderer size. What makes for a sensible default? -- Edvin