Ken Webb 2010-04-07T16:02:00Z
Xholon includes early versions of tools that can help when converting an existing Java application into a Xholon application.
This is a stand-alone class that can be used as part of any Java application that has Swing components. It transforms a specified Swing component hierarchy into Xholon SwingEntity format. It also optionally writes out an inheritance hierarchy in a separate file, and a separate class details file. These files can then be manually edited to create a declarative GUI that a Xholon application can read in and interact with.
<?xml version="1.0" encoding="UTF-8"?> <!-- Automatically generated by Xholon version 0.7.1, using org.primordion.tool.Swing2SwingEntity.java Sun Jun 29 19:32:18 EDT 2008 1214782338937 model: MeTTTa www.primordion.com/Xholon --> <JFrame> <JRootPane> <JPanel/> <JLayeredPane> <JPanel> <JPanel> <JButton/> <JButton/> <JButton/> <JButton/> <JButton/> <JButton/> <JButton/> <JButton/> <JButton/> </JPanel> <Box> <JButton/> <Box__Filler/> <JButton/> </Box> </JPanel> </JLayeredPane> </JRootPane> </JFrame>
Instances of this class can be inserted into any Java class. At runtime, this instrumentation will write out several XML files in Xholon format: a composite structure file, an inheritance hierarchy file (optional), and a class details file (optional).