|
JAMLDescriptionThe acronym "JAML" stands for "Java Application Markup Language" and, loosely speaking, refers to a language for describing Java interfaces in a XML-style document. However, the name also refers to the entire library that I wrote to enable robust parsing, validating and building of these interfaces in a way that is extremely easy to use and extend. What does this mean? In layman's terms, JAML is a code library that allows the software developer to design the interface of their application (the way it looks to you as the user) in a language similar to HTML (the language used to create simple webpages). This makes it a lot easier and faster to create the program. It also means that there's a possibility that YOU, as the user, will be able to change the interface yourself simply by editing the application's JAML file. Imagine being able to rearrange the buttons and options on your favorite application to exactly the layout that works best for you. That is the flexibility that JAML provides. For developers: if you're familiar with XAML, then you will catch on quickly; it's basically the same thing for Java. If not, perhaps the following example will make it clear:
The above code (written in Simple JAML) describes an interface. The following Java class uses the JAML library to build a real application using that interface, assuming that all of the above is in the file "sample.jaml".
That's all the code it takes! Technically, you could get by with even less code by using a slightly different method (there are many ways to use the JAML library), but it's recommended that you just use the method illustrated above. The result is the following interface: ![]() At this point, the basic framework of the JAML library is very much complete. Mechanisms are in place for nearly all expected features, although not all have implementations. Currently, the JAML library will parse, validate and build Java interfaces from "Simple JAML," which is a language I wrote (or rather: I am making up as I go...) for writing interfaces in XML. The interface code above is an example of an interface written in Simple JAML. Eventually I plan to add implementations for two other languages: the "real" Swing JAML, which will be based on Java Swing objects, and XAML, Microsoft's application markup language. This would provide developers a wide range of languages to use in writing their application GUI, and of course they can always modify or extend an existing language, or simply use actual Java code to set properties and use Swing features that the languages do not include. FeaturesFully implemented:
NOTE: THIS IS CURRENTLY A PRERELEASE (ALPHA) VERSION. EXPECT INCOMPLETE, INCORRECT AND/OR MISSING FEATURES AND DOCUMENTATION, AS WELL AS LOTS OF SOFTWARE DEFECTS ("BUGS"). I AM NOT RESPONSIBLE FOR ANY DAMAGE, LOSS OR MENTAL INSANITY RESULTING FROM THE USE OR MISUSE OF THIS SOFTWARE. JAML itself is distributable as a JAR file that includes the JAMLPad application. I will include this JAR file as an optional download, but what you probably really want is the .zip (Windows) or .tar.gz (*nix) file, which include the entire developer directory, including the compiled JAR file, sources and all documentation.
|