Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 92965 invoked from network); 12 Jan 2011 13:00:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 13:00:56 -0000 Received: (qmail 48759 invoked by uid 500); 12 Jan 2011 13:00:56 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 48717 invoked by uid 500); 12 Jan 2011 13:00:53 -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 48709 invoked by uid 99); 12 Jan 2011 13:00:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 13:00:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gk_brown@verizon.net designates 206.46.173.5 as permitted sender) Received: from [206.46.173.5] (HELO vms173005pub.verizon.net) (206.46.173.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 13:00:43 +0000 Received: from [192.168.1.14] ([unknown] [98.110.173.176]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEW006U1USBEV21@vms173005.mailsrvcs.net> for user@pivot.apache.org; Wed, 12 Jan 2011 07:00:12 -0600 (CST) Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Apple Message framework v1082) Subject: Re: Meaning of baseType parameter in BXMLSerializer#readObject(baseType, resourceName) From: Greg Brown In-reply-to: Date: Wed, 12 Jan 2011 08:00:11 -0500 Content-transfer-encoding: quoted-printable Message-id: References: To: user@pivot.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org Yeah, it's sort of a confusing method signature. :-( The base type is = just the class that the file is relative to. The method signature that = takes a URL may be clearer: bxmlSerializer.readObject(getClass().getResource("foo.bxml")); On Jan 12, 2011, at 7:17 AM, Marco Castillo wrote: > Dear List: > Which is the meaning of the parameter baseType in the call of = BXMLSerializer#readObject(baseType, resourceName). In the documentation = it states that is the base type!! > I'm asking this because I have many .bxml files and one loader class = associated with each .bxml file. Inside each .bxml file is a border pane = with a layout in it. I want to load each .bxml file and then insert each = component created inside a CardPane as it is done in the KitchenSink = demo. The difference is that I'm not embedding each class loader class = into the main class, I have each class in its own separate file. > I saw in the KitchenSink demo that the baseType parameter was always = the KitchenSink.class. So in my case, which class should I put as the = baseType parameter in the readObject call? the loader class or the main = class? >=20 > Thank you in advance for your kind reply. >=20 > Regards >=20