Return-Path: Delivered-To: apmail-incubator-pivot-user-archive@minotaur.apache.org Received: (qmail 58354 invoked from network); 17 Nov 2009 14:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 14:08:56 -0000 Received: (qmail 78877 invoked by uid 500); 17 Nov 2009 14:08:56 -0000 Delivered-To: apmail-incubator-pivot-user-archive@incubator.apache.org Received: (qmail 78852 invoked by uid 500); 17 Nov 2009 14:08:55 -0000 Mailing-List: contact pivot-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pivot-user@incubator.apache.org Delivered-To: mailing list pivot-user@incubator.apache.org Received: (qmail 78843 invoked by uid 99); 17 Nov 2009 14:08:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 14:08:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tvolkert@gmail.com designates 216.239.58.185 as permitted sender) Received: from [216.239.58.185] (HELO gv-out-0910.google.com) (216.239.58.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 14:08:47 +0000 Received: by gv-out-0910.google.com with SMTP id c6so3230gvd.17 for ; Tue, 17 Nov 2009 06:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WwyGz0reCjnRpJi67xJqCd8xEouGvkeQW645EPTYdaw=; b=BfYrJwF/Bthn9nY7Din86A0h2TebU17OXlHvhOGP3OA45V9Vb9ILUTFsdN8dql9Z+C D94dgGYWHi2zdylKcY2wIviWzCr/uXo3xSOTeiIXfO+Qo5GjTriUDDEE0WLc/hT6E2x3 JSxu+9LQt85hCyt56S7ad8hqy8ZvWO3xnLI+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EYBU7/ToESmtmijI5fN5TFeSHrjN0VV+40xLWUes9AiHANhHi/+bY2Z9jnZSLrZA5a biiq8N0S4LYceF6M2lsV6BIDNONa52uZwObjz59nGBNQnCv8z6D7aMmFzT2E4GPlyWpF d6z4N7sXzgBy1yHpsSpa8PapQPYvpUmA8pi5M= MIME-Version: 1.0 Received: by 10.239.183.20 with SMTP id s20mr985561hbg.66.1258466906843; Tue, 17 Nov 2009 06:08:26 -0800 (PST) In-Reply-To: <62b7cb8a0911170605w1aa3edd0g616264832050036@mail.gmail.com> References: <62b7cb8a0911170553s2fa78a34o366498264c7be96e@mail.gmail.com> <62b7cb8a0911170605w1aa3edd0g616264832050036@mail.gmail.com> Date: Tue, 17 Nov 2009 09:08:26 -0500 Message-ID: <168ef9ac0911170608g34ad471uc2e9e94e9cf7f0e6@mail.gmail.com> Subject: Re: How To Specify Location of Image in wtkx file From: Todd Volkert To: pivot-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001485f7c02cf1aa87047891a849 X-Virus-Checked: Checked by ClamAV on apache.org --001485f7c02cf1aa87047891a849 Content-Type: text/plain; charset=ISO-8859-1 We're quick on the draw :) I'd start by studying the WTKX primer ( http://incubator.apache.org/pivot/1.3/tutorials/wtkx_primer.html) -- it explains how WTKX translates to Java API calls. Once you understand how it works, you'll know all the attributes and elements you can use by browsing the Javadocs :) Cheers, -T On Tue, Nov 17, 2009 at 9:05 AM, Bob Santos wrote: > Hi Todd and Greg! > > Thanks for the fastest reply I have ever received for my questions. :) > > You just confirmed my guess earlier. So time for me to learn how to add > resources to the classpath in Maven. > > I'm learning Maven and Pivot at the same time. > > By the way, where can I see a list of the attributes and the styles I can > use? > > > Thanks, > > Bob > > > On Tue, Nov 17, 2009 at 10:01 PM, Greg Brown wrote: > >> Hi Bob, >> >> You need to make sure that the images directory is on your classpath. Then >> you can say: >> >> >> >> where the value of the "image" attribute is simply the name of an image on >> your classpath, using the same syntax you would pass to >> Class#getResourceAsStream(). >> >> Greg >> >> On Nov 17, 2009, at 8:53 AM, Bob Santos wrote: >> >> Hi All! >> >> I am trying to replicate the example in the Labels and Image Views section >> of the tutorials. I've been looking for something that will help me in the >> documentation, unfortunately I found nothing or I'm just looking at the >> wrong places. >> >> I just want to ask how do I specify the location of an image in >> "main.wtkx" located in the "image" folders if I have this directory layout. >> >> I >> >> >> And here's the content of "main.wtkx": >> >> > xmlns:wtkx="http://pivot.apache.org/wtkx" >> xmlns="org.apache.pivot.wtk"> >> >> >> >> >> >> >> >> >> Thanks and Regards, >> >> Bob Santos >> >> >> > --001485f7c02cf1aa87047891a849 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable We're quick on the draw :)

I'd start by studying the WTKX pr= imer (http://incubator.apache.org/pivot/1.3/tutorials/wtkx_primer.html) -- it explains how WTKX translates to Java API calls.=A0 Once you unders= tand how it works, you'll know all the attributes and elements you can = use by browsing the Javadocs :)

Cheers,
-T

On Tue, Nov 17, 2009 at= 9:05 AM, Bob Santos <bob.santosjr@gmail.com> wrote:
Hi Todd and Greg!

Thanks for the fastest reply I have ever received = for my questions. :)

You just confirmed my guess earlier. So time fo= r me to learn how to add resources to the classpath in Maven.

I'= m learning Maven and Pivot at the same time.

By the way, where can I see a list of the attributes and the styles I c= an use?


Thanks,

Bob


On Tue, Nov 1= 7, 2009 at 10:01 PM, Greg Brown <gkbrown@mac.com> wrote:
Hi Bob,

You need to make sure that = the images directory is on your classpath. Then you can say:

<ImageView image=3D"foo.png"/>

where the value of the "image" attribute is simp= ly the name of an image on your classpath, using the same syntax you would = pass to Class#getResourceAsStream().

Greg

On Nov 17, 2009, at 8= :53 AM, Bob Santos wrote:

Hi = All!

I am trying to replicate the example in the Labels and Image V= iews section of the tutorials. I've been looking for something that wil= l help me in the documentation, unfortunately I found nothing or I'm just looking at the wrong places.<= br>
I just want to ask how do I specify the location of an image in &quo= t;main.wtkx" located in the "image" folders if I have this d= irectory layout.

I <layout.PNG>


And here's the content of "main.wtkx":

<Window = title=3D"Hello Pivot" maximized=3D"true"
=A0=A0=A0 x= mlns:wtkx=3D"http://pivot.apache.org/wtkx"
=A0=A0=A0 xmlns=3D"org.apache.pivot.wtk">
=A0=A0=A0 <con= tent>
=A0=A0=A0 =A0=A0=A0 <BoxPane styles=3D"{padding4, verti= calAlignment'center'}">
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 &l= t;ImageView image=3D"?" cursor=3D"link" />
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <Label text=3D"Add Table" styles= =3D"{font'Georgia bold 10'}" />
=A0=A0=A0 =A0=A0=A0= </BoxPane>
=A0=A0=A0 </content>
</Window>

<= br>Thanks and Regards,

Bob Santos



--001485f7c02cf1aa87047891a849--