pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: BXML Rendering
Date Wed, 01 Jun 2011 13:23:11 GMT
Yup, very easy. Just use BXMLSerializer to load the text the user enters. You may need to wrap
it in a StringReader to pass to readObject().

The only real trick is how to get it on screen. Every UI element in a Pivot app must ultimately
be contained by some kind of Window. You could require your users to create a Window (or subclass)
as a root element, but that might be kind of limiting. Alternatively, if you allow them to
create any kind of component except Window (and Display) as a root element, you could open
your preview in a Frame, or the right-hand side of a SplitPane, etc.


On Jun 1, 2011, at 9:12 AM, noobmike wrote:

> Hey Experts, I have yet another question for you!
> In my App, I want to essentially render user typed bxml code(say in a text
> area) and have it shown (functional preferably if not that's fine too) in
> real time. Or as close to real time as possible, so if they have to click a
> "Render Code" button so be it. 
> Is this possible? I read a previous thread that was somewhat similar, but am
> not sure if its exactly what I am trying to do. 
> Any suggestions? 
> Thanks for your wisdom
> Mike.
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/BXML-Rendering-tp3010653p3010653.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message