Understood. I'm just looking to implement the renderer for display purposes only for now and will use an editor for interaction.
So, if I want the renderer to show what looks like a ListButton (or actually more importantly, a Checkbox), what do I have to do? Just specify the MultiCellRenderer as the cellRenderer in the BXML file? I want my enum fields to display in a (pseudo-)ListButton and my boolean fields as Checkbox... Thanks. Roger Whitcomb | Architect, Engineering | [email protected]| Ingres | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA <http://www.google.com/maps?f=q&hl=en&geocode=&q=500+Arguello+Street+%7C +Suite+200+%7C+Redwood+City+%7C+CA+%7C+94063+%7C+USA+&sll=37.0625,-95.67 7068&sspn=50.557552,73.037109&ie=UTF8&t=h&z=16&iwloc=addr> | +1 650-587-5596 | fax: +1 650-587-5550 From: Greg Brown [mailto:[email protected]] Sent: Monday, May 16, 2011 10:27 AM To: [email protected] Subject: Re: Use of TableViewMultiCellRenderer You can draw a ListButton in a TableView using a renderer, but it won't be interactive. As in Swing, Pivot renderers act like "rubber stamps" - they can only present content, not respond to user input. If you need interactivity, you can use an editor. Take a look at the table row editor demo or the Kitchen Sink demo for some examples. G On May 16, 2011, at 1:03 PM, Roger L. Whitcomb wrote: I need to put both ListButtons and Checkbox elements into a TableView. In looking through the source, it *looks* like the TableVIewMultiCellRenderer could potentially be used to do this, but I'm not clear how that would work. Am I dreaming or is this possible? What would the renderer code I would need to write look like? Or would I have to implement something like TableViewTextAreaCellRenderer myself (say, a "TableVIewListButtonCellRenderer")? I didn't find any examples using the TableViewMultiCellRenderer, so I thought I'd ask. Thanks. Roger Whitcomb Architect, Engineering Ingres Corporation [email protected] PHONE +1 650.587.5596 FAX +1 650.587.5550 www.ingres.com <http://www.ingres.com/> This transmission is confidential and intended solely for the use of the recipient named above. It may contain confidential, proprietary, or legally privileged information. If you are not the intended recipient, you are hereby notified that any unauthorized review, use, disclosure or distribution is strictly prohibited. If you have received this transmission in error, please contact the sender by reply e-mail and delete the original transmission and all copies from your system.
