Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1936D200D34 for ; Fri, 3 Nov 2017 22:33:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 17C6F160BFB; Fri, 3 Nov 2017 21:33:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 365B9160BDE for ; Fri, 3 Nov 2017 22:33:09 +0100 (CET) Received: (qmail 29708 invoked by uid 500); 3 Nov 2017 21:33:08 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 29687 invoked by uid 99); 3 Nov 2017 21:33:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2017 21:33:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5E9081A17C8 for ; Fri, 3 Nov 2017 21:33:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.5 X-Spam-Level: X-Spam-Status: No, score=-2.5 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hqE5M45rmhvL for ; Fri, 3 Nov 2017 21:33:05 +0000 (UTC) Received: from atl4mhob07.registeredsite.com (atl4mhob07.registeredsite.com [209.17.115.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9EA705FD5C for ; Fri, 3 Nov 2017 21:33:05 +0000 (UTC) Received: from mailpod.hostingplatform.com ([10.30.77.68]) by atl4mhob07.registeredsite.com (8.14.4/8.14.4) with ESMTP id vA3LX3Po022121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 3 Nov 2017 17:33:03 -0400 Received: (qmail 31051 invoked by uid 0); 3 Nov 2017 21:33:03 -0000 X-TCPREMOTEIP: 83.153.36.13 X-Authenticated-UID: ngranon@idylog.com Received: from unknown (HELO macbookairng) (ngranon@idylog.com@83.153.36.13) by 0 with ESMTPA; 3 Nov 2017 21:33:02 -0000 Reply-To: From: "Idylog - Nicolas Granon" To: References: <00c701d3533b$39e8f2a0$adbad7e0$@com> <564237F8-76E7-4CE0-BE45-DA983890DAA5@gmail.com> <00a801d354ba$4646c650$d2d452f0$@com> In-Reply-To: Subject: ViewStack implementation [was : Restarting contributions] Date: Fri, 3 Nov 2017 22:33:01 +0100 Organization: IDYLOG Message-ID: <002401d354eb$5476dcc0$fd649640$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AQHTUl1D/oCzND3/LUO7z2jz8MA+HKL/0bYAgAE16wCAAAIrAIABxgSA//+m3gCAALm5QA== Content-Language: fr archived-at: Fri, 03 Nov 2017 21:33:10 -0000 (I have changed the thread object to better reflect its content) That is crystal clear ! Thank you for that explanation. We are considering rewriting "ViewStack" based on Harb's work. In order to be more compliant, how should we use the typeNames property = you are talking about ? Nicolas Granon > -----Message d'origine----- > De : Alex Harui [mailto:aharui@adobe.com.INVALID] > Envoy=C3=A9 : vendredi 3 novembre 2017 18:23 > =C3=80 : dev@royale.apache.org; ngranon@idylog.com > Objet : Re: Restarting contributions >=20 > We do that to try to get some backward compatibility with Flex. >=20 > Flex extended the CSS type selector system to allow a type selector = for > any component. So you could do: >=20 > DataGrid { font-weight: bold } >=20 > You can't extend the type selector system in the browser (AFAIK) so we > mimic this by converting a non-standard type selector to a class > selector. > So the CSS file in the JS output looks like: >=20 > .DataGrid { font-weight: bold } >=20 > And then to get that to work, we add DataGrid to the list of class > names on the HTMLElement. I think that StackedViewManager may need = its > code updated because components are supposed to use the typeNames > property which the framework appends to the classNames list instead of > directly setting className itself. >=20 > HTH, > -Alex >=20 > On 11/3/17, 8:41 AM, "Idylog - Nicolas Granon" > wrote: >=20 > >Many thanks. > > > >Quite useful. > > > >Question : I read the source code, and saw that in the > >StackedViewManager class, you explicitly assign the class name (as a > >String) to the className property like that : > >className =3D "StackedViewManager"; > > > >Why is that ? > > > >Nicolas Granon > > > > > > > > > >> -----Message d'origine----- > >> De : Harbs [mailto:harbs.lists@gmail.com] Envoy=C3=A9 : jeudi 2 = novembre > >> 2017 13:37 =C3=80 : dev@royale.apache.org Objet : Re: Restarting > >> contributions > >> > >> The classes probably do not belong necessarily in mobile. > >> > >> Here=E2=80=99s what I=E2=80=99m using: > >> css: > >> > >> js|TabbedViewManager { > >> IBeadView: > >> > ClassReference("org.apache.royale.mobile.beads.TopTabbedViewManagerVi > >> ew > >> "); > >> } > >> > >> mxml: > >> >> width=3D"682" height=3D"360" = viewChanged=3D"tabbedViewChanged(event)"> > >> > >> > >> > >> >> width=3D"682" height=3D"360" > >> > >dataProvider=3D"{suiteProvider}" > >> > >> change=3D"handleExtensionDGChange(event)" rowHeight=3D"30"> > >> > >> >/> > >> > >> > >> >label=3D"Product" > >> dataField=3D"product" columnWidth=3D"30" > >> > = itemRenderer=3D"com.intools.dashboard.renderers.CenteredStringRenderer"/>= > >> >label=3D"Status" > >> columnWidth=3D"33" > >> itemRenderer=3D"com.intools.dashboard.renderers.StatusRenderer"/> > >> >label=3D"Version" > >> dataField=3D"iVersion" columnWidth=3D"12" > >> > = itemRenderer=3D"com.intools.dashboard.renderers.CenteredStringRenderer"/>= > >> >label=3D"Latest > >> Version" columnWidth=3D"25" > >> itemRenderer=3D"com.intools.dashboard.renderers.VersionUpdater"/> > >> > >> > >> > >> > >> > >> >> > >> dataProvider=3D"{pluginProvider}" > >> > >> change=3D"handleExtensionDGChange(event)" rowHeight=3D"30"> > >> > >> >/> > >> > >> > >> >label=3D"Product" > >> dataField=3D"product" columnWidth=3D"30" > >> > = itemRenderer=3D"com.intools.dashboard.renderers.CenteredStringRenderer"/>= > >> >label=3D"Status" > >> columnWidth=3D"33" > >> itemRenderer=3D"com.intools.dashboard.renderers.StatusRenderer"/> > >> >label=3D"Version" > >> dataField=3D"iVersion" columnWidth=3D"12" > >> > = itemRenderer=3D"com.intools.dashboard.renderers.CenteredStringRenderer"/>= > >> >label=3D"Latest > >> Version" columnWidth=3D"25" > >> itemRenderer=3D"com.intools.dashboard.renderers.VersionUpdater"/> > >> > >> > >> > >> > >> > >> Things that need improvement: > >> 1. The tabs take up the full width. > >> 2. The tabs are simple buttons and the TabBar is hard-coded in. It > >> really needs to be toggle buttons which have a selected state. > >> > >> Otherwise it works pretty well. > >> > >> Harbs > >> > >> > On Nov 2, 2017, at 2:29 PM, Yishay Weiss > >> wrote: > >> > > >> > > >> > > >> > For now, we would like to have an Apache Royale "ViewStack" > >> equivalent but we do not know where to start. > >> > What do you think the parent component should be ? Could you give > >> > to > >> us some cues ? > >> > > >> > I think Harbs got StackedViewManager [1] to work for him in one = of > >> his apps. It=E2=80=99s in the mobile package but I=E2=80=99m not = sure there=E2=80=99s a > >> reason not to use it on desktop. > >> > [1] > = >>https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgith= > u > >>b.c > >>om%2Fapache%2Froyale- > &data=3D02%7C01%7C%7C8ca096bd31024951eb4608d522d16c > >>8d% > = >>7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636453205224099105&sdata > =3D > >>s%2 > >>Fr5KzGaKVqOLy8wTZ4QEHCspnV8UyHxn0XhvhN2KlM%3D&reserved=3D0 > >> asjs/search?p=3D1&q=3DStackedViewManager&type=3D&utf8=3D%E2%9C%93 > >> > > > > >