Pivot does not include a tool to convert WTKX/BXML into Java source, but if
you take a look at the WTKX/BXML Primer pages, you will see how Pivot
processes WTKX/BXML and therefore how you could convert to source if you
wanted.

For instance...
java packages = wtkx/bxml namespaces
java classes = elements starting with an upper case character / create new
object
java class bean properties = elements starting with a lower case character

Reference for Pivot 1.5.2 and earlier releases (WTKX)
http://pivot.apache.org/tutorials/wtkx-primer.html

Pre-release reference documentation for Pivot 2.0 (BXML)
http://ixnay.biz/pivot-tutorials/bxml-primer.html

The source for BXMLSerializer might also prove to be helpful if you did want
to write such a tool.  You might be able to extend or modify it without too
much effort in order to spit out java source, or at least some data that
could then be post-processed.
http://svn.apache.org/repos/asf/pivot/trunk/core/src/org/apache/pivot/beans/BXMLSerializer.java

Chris

On 20 December 2010 10:26, calathus <[email protected]> wrote:

> Hi,
> I'm looking for a tool to convert bxml file to equivalent Java source
> program.
> Are there such tools?
>
> I just started using pivot, but many of sample is based on bxml.
> I think in order to develop a UI library with Java generic class, XML file
> based approach is not appropriate.
>
> And xml based approach will reduce static error detection capability.
> I liked to see  more examples using  Java classes to define GUI without
> relying on bxml files.
>
> --
> Cheers,
> calathus
>
>
>
>

Reply via email to