|
||||
General Documentation
|
Quick StartRunning the Test PanelAny of the examples given in the documentation can be tried out as they are explained. The XmlPanel is a runnable object, and xmlPanel.jar is a runnable JAR file. When run, it will bring up an empty XmlPanel window which can then be used to test out XML layouts right in front of your eyes! Once you have downloaded the distribution files, you can run the test panel by executing the following in the directory that xmlPanel.jar resides:
Running the XmlPanel will result in a blank XmlPanel window like the following:
Bringing Up the XML EditorDoesn't look like much, does it? The XmlPanel has a built-in XML Editor that can be brought up against a running panel. The editor will allow the developer to change the XML behind the panel and apply the changes, thereby being able to see the new layout at runtime. The magic sequence to remember is to double-right-click on the panel. Doing this on any part of the exposed panel will bring up the XML Editor dialog.
The XML Editor is a feature that is disabled by default in your panels. It can be enabled in code
for individual panels with the A Simple Example LayoutNow that the editor is running, we can try our first layout example. A full explanation of the XML syntax and concepts can be found in Layout Concepts. For now, we'll just try the following self-explanatory example:
Enter the XML into the editor and click Apply.
There you go! Your first XML layout panel. Not too painful, right? The rest of the sections in the documentation delve into the details of the XML layout, syntax, concepts, extensibility, etc. Try the sample layouts as you go by using the test panel, and then experiment on your own. Next: Layout Concepts |
|||
Copyright (c) 2006, Abstractics, L.L.C. |