pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger and Beth Whitcomb <RogerandB...@rbwhitcomb.com>
Subject Re: Getting referenced BXML files of main file into the class
Date Mon, 02 Sep 2013 00:48:14 GMT
Hi Ajay,
     I assume you are doing this in Javascript from inside the bxml file 
itself?!  You should be able to read the included file from there, but I 
can't tell you right now how you would do that.  If I was doing this, I 
would wait and do the whole thing in Java after the whole hierarchy is 
loaded, but before displaying anything.  So, my feeling is that even if 
you could get the included file loaded that it still wouldn't work right 
because you would be catching the included file before it was loaded, 
and so your styles would end up getting overridden when it did get loaded.
     Anyone else have a comment??


On 8/31/13 9:22 PM, Ajay Bhat wrote:
> In the tutorial for UI Markup using Stock Tracker App [1] [2], there's 
> this bit of code.
> <Border styles="{padding:6, color:10}">
>          <bxml:include bxml:id="detailPane" src="detail_pane.bxml"/>
> </Border>||
> Suppose I wish to manipulate styles of the entire app, and so I 
> traverse through all the components starting from the main BXML file. 
> When I reach the right side of Split Pane I encounter a ref to another 
> BXML file i.e detail pane. How can I get the components of that detail 
> pane into my class? I've tried using (Border) component.getContent() 
> but all I get is the name of the file, not the component.
> [1] http://pivot.apache.org/tutorials/stock-tracker.ui.html
> [2] http://pivot.apache.org/tutorials/stock-tracker.html
> <http://pivot.apache.org/tutorials/stock-tracker.ui.html>--
> Regards,
> Ajay Bhat

View raw message