XULUX by default, comes with its own gui driver. This xml format has been thought up based on the needs that I had when developing it. The format is pretty straightforward and doesn't add any dependencies to xulux than just a SAXParser, that already is present on most platforms on which xulux should run.
The
XuluxHandler is the parser to create
XuluxParts
from xml. You can just call the handler with an inpustream to get a part
back to be used in an application. The part you get back, just needs
a call to part.activate()
to show the gui and do it's magic.
So a part can be processed from your current with these lines of code
// for now mandatory, sorry :( XuluxContext.getInstance(); String xml = "org/xulux/screens/person.xml"; Object object = new PersonBean(); InputStream stream = getClass().getClassLoader().getResourceAsStream(xml); XuluxPart part = new XuluxPartHandler().read(stream, object); part.activate();
Note : The parsing will change in the near future, since in the future there will be a mapping associated with the form, which will handle the data part.