Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54E8310330 for ; Wed, 20 Nov 2013 22:08:10 +0000 (UTC) Received: (qmail 207 invoked by uid 500); 20 Nov 2013 22:08:09 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 174 invoked by uid 500); 20 Nov 2013 22:08:09 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 166 invoked by uid 99); 20 Nov 2013 22:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 22:08:09 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aharui@adobe.com designates 64.18.1.237 as permitted sender) Received: from [64.18.1.237] (HELO exprod6og121.obsmtp.com) (64.18.1.237) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 22:08:02 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob121.postini.com ([64.18.5.12]) with SMTP ID DSNKUo0yrg6KbU0BH0dujzAKFT80Yz5Yg2D0@postini.com; Wed, 20 Nov 2013 14:07:42 PST Received: from inner-relay-2.corp.adobe.com ([153.32.1.52]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id rAKM3tt2014126 for ; Wed, 20 Nov 2013 14:03:55 -0800 (PST) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id rAKM7fOV026445 for ; Wed, 20 Nov 2013 14:07:42 -0800 (PST) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nahub01.corp.adobe.com ([10.8.189.97]) with mapi; Wed, 20 Nov 2013 14:07:41 -0800 From: Alex Harui To: "users@flex.apache.org" Date: Wed, 20 Nov 2013 14:07:37 -0800 Subject: Re: rendererIsEditable in spark Datagrid Thread-Topic: rendererIsEditable in spark Datagrid Thread-Index: Ac7mPO50BvgrF9IZSyWC1st0mnZJLA== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.6.130613 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org At some point, the renderer gets added to the display list and addFocusables should be called again. Maybe focusEnabled=3Dfalse somewhere in the tree? -Alex On 11/20/13 11:24 AM, "Jo=E3o Fernandes" wrote: >Alex, your question did point me to the right direction, I found out the >skin itself was setting hasFocusableChildren to false in the scroller. >After fixing that, the problem is still there so I went to the moment it >creates all the itemrenderers and noticed that for that ItemRenderer, the >*addFocusables* function, does have checkChildren =3D true but unfortunate= ly >the else statement only loops through the children in container but the >object itself I plan to get focus is under the elements property. > >For the ItemRenderer itself, it doesn't get added to the focusable list >because it fails during the isTabVisible when it starts climbing the >displayList, the Datagrid report hasFocusableChildren =3D false and fails >the >expression: > >*if (p is IFocusManagerComponent && >!(IFocusManagerComponent(p).hasFocusableChildren))* >* return false;* > > > >On 20 November 2013 17:37, Alex Harui wrote: > >> Why is the object not in the focusableObjects list? >> >> On 11/20/13 8:42 AM, "Jo=E3o Fernandes" >> wrote: >> >> >Hi guys, >> > >> >I have this issue with a spark datagrid where I have some >> >defaultItemRenders with their default item Editors but with 2 columns >>with >> >the same custom ItemRenderer which are also marked in the gridColumn >>with >> >rendererIsEditable=3D"true". >> >When I try to tab between the editable columns, all defaults >>ItemEditors >> >work as expected but once reached those custom renderers, tabbing stop >> >working within the cells and jump to another component. >> > >> >I've been debugging for a while and I've noticed that during >> >*setEditedItemPosition()* it tries to set focus on the ItemRenderer >> >(setFocusInItemRenderer) but in the line *o =3D >> >fm.getNextFocusManagerComponent(false) as DisplayObject;* it fails to >>find >> >the correct object because *getNextFocusManagerComponent2* in the >> >*FocusManager* fails to find the index (returns -1) in line * i =3D >> >getIndexOfFocusedObject(o);* because the ItemRenderer is not in the >> >focusableObjects list. >> > >> >Does anyone know if there is any way to manage to get the ItemRenderer >> >added to the focusableObjects list? >> > >> > >> >-- >> > >> >Jo=E3o Fernandes >> >> > > >--=20 > >Jo=E3o Fernandes