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 C4B9311F13 for ; Sun, 20 Jul 2014 07:27:18 +0000 (UTC) Received: (qmail 41038 invoked by uid 500); 20 Jul 2014 07:27:18 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 41017 invoked by uid 500); 20 Jul 2014 07:27:18 -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 41006 invoked by uid 99); 20 Jul 2014 07:27:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jul 2014 07:27:17 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aharui@adobe.com designates 207.46.163.183 as permitted sender) Received: from [207.46.163.183] (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jul 2014 07:27:16 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com (10.141.95.147) by BL2PR02MB499.namprd02.prod.outlook.com (10.141.95.143) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 07:26:50 +0000 Received: from BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) by BL2PR02MB500.namprd02.prod.outlook.com ([10.141.95.147]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 07:26:50 +0000 From: Alex Harui To: "users@flex.apache.org" Subject: Re: ItemRenderer declaration in MXML Thread-Topic: ItemRenderer declaration in MXML Thread-Index: AQHPo0H9OK/eQLA6bUiqgQo16nAhZJuoHAYA Date: Sun, 20 Jul 2014 07:26:49 +0000 Message-ID: References: <1405768127933-7339.post@n4.nabble.com> In-Reply-To: <1405768127933-7339.post@n4.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.2.140509 x-originating-ip: [63.229.16.99] x-microsoft-antispam: BCL:0;PCL:0;RULEID: x-forefront-prvs: 02788FF38E x-forefront-antispam-report: SFV:NSPM;SFS:(6009001)(24454002)(51704005)(479174003)(377454003)(189002)(199002)(107046002)(2351001)(107886001)(110136001)(36756003)(101416001)(46102001)(21056001)(76482001)(99396002)(54356999)(4396001)(64706001)(50986999)(76176999)(80022001)(20776003)(83072002)(2656002)(85852003)(92726001)(66066001)(86362001)(87936001)(92566001)(81342001)(81542001)(19580395003)(77982001)(19580405001)(83322001)(15202345003)(74502001)(31966008)(79102001)(15975445006)(83506001)(85306003)(99286002)(95666004)(106356001)(106116001)(105586002);DIR:OUT;SFP:;SCL:1;SRVR:BL2PR02MB499;H:BL2PR02MB500.namprd02.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: <5CB185203750C942A8896C8E059AE79D@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-Virus-Checked: Checked by ClamAV on apache.org Without looking, I think any Ifactory results in wrapping by ClassFactory. Try it and let us know if it doesn't work. On 7/19/14 4:08 AM, "After24" wrote: >Hello, > >I'm building a custom component with an itemRenderer public property : > >public function get itemRenderer():IFactory >{ > return _itemRenderer; >} > =09 >public function set itemRenderer(value:IFactory):void >{ > _itemRenderer =3D value; > ..... >} > >So the setter is waiting for an IFactory. > >In MXML, for components like spark List or Datagrid, the itemRenderer >property can be set with the following declaration : >itemRenderer=3D"com.foo.ItemRenderClass" > >I would like to understand the mechanism that allow the conversion of the >String into an IFactory. >I guess the compiler checks if com.foo.ItemRenderClass exists and, if >true, >returns a new ClassFactory(ItemRenderClass) ? > >Is it possible to get the same behavior with a custom component, I mean >having the possibility to use a classPath String in MXML while the setter >of >the property is waiting for a different type (like an Ifactory in my >case) ? >is it based on Metadata ? > >Thank you. > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/ItemRenderer-declaration-in >-MXML-tp7339.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.