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 B1AD9D2B9 for ; Thu, 13 Sep 2012 14:21:00 +0000 (UTC) Received: (qmail 54027 invoked by uid 500); 13 Sep 2012 14:21:00 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 53950 invoked by uid 500); 13 Sep 2012 14:21:00 -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 53939 invoked by uid 99); 13 Sep 2012 14:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 14:20:59 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [173.201.192.108] (HELO p3plsmtpa06-07.prod.phx3.secureserver.net) (173.201.192.108) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 14:20:52 +0000 Received: from Roger-Whitcombs-iMac.local ([99.150.210.83]) by p3plsmtpa06-07.prod.phx3.secureserver.net with id yeLV1j0071oWhfn01eLWKT; Thu, 13 Sep 2012 07:20:30 -0700 Message-ID: <5051EBAD.3020606@rbwhitcomb.com> Date: Thu, 13 Sep 2012 07:20:29 -0700 From: Roger and Beth Whitcomb User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: user@pivot.apache.org Subject: Re: Usage of TableViewCheckboxCellRenderer References: <1347441751693-4022108.post@n3.nabble.com> In-Reply-To: <1347441751693-4022108.post@n3.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Brendan, The Java bean class does not need a Checkbox in it -- it just needs to provide a data value for the renderer to use. So, actually you don't even need your TagView class since the "Tag" object already has the correct bean method ("isAttachable()"). All you would need, then, is just to use a List as the data for your TableView with the BXML you have already coded. Although (and I haven't tried it to be sure) you might need to say name="attachable" (lower case). ~Roger Whitcomb On 9/12/12 2:22 AM, ccp999 wrote: > Hi, > > I followed Table View Tutorial and setup a java bean class as followed: > > public class TagView { > > Tag tag; > private Checkbox attachableCheckbox = null; > > TagView(Tag tag) { > this.tag = tag; > } > public Checkbox getAttachable() { > attachableCheckbox = new Checkbox(); > attachableCheckbox.setSelected(tag.isAttachable()); > } > } > > and BXML file: > ... > > > > > > ... > > The checkbox does appear but all are unselected even for selected column. > > What's wrong? > > Brendan > > > > > -- > View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Usage-of-TableViewCheckboxCellRenderer-tp4022108.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. > >