org.uispec4j.extension
Class ExtensionGenerator

java.lang.Object
  extended by org.uispec4j.extension.ExtensionGenerator

public class ExtensionGenerator
extends java.lang.Object

Provides a means for extending UISpec4J to support user-defined components.

This class offers a main() function which generates a JAR file containing extended versions of some UISpec4J classes (for instance Panel). This JAR file is intended to be placed before the UISpec4J JAR in your classpath.

Arguments:


 <path> <name:class> <name:class> ...
 
where: For instance:

 java -cp ...  org.uispec4j.extension.ExtensionGenerator lib/uispec_ext.jar Calendar:com.xxx.Calendar
 

The component class and the associated Swing class must adhere to certain conventions:

For instance:
 public class Calendar extends AbstractUIComponent {
   public static final String TYPE_NAME = "calendar";
   public static final Class[] SWING_CLASSES = {JCalendar.class};
   public Calendar(JCalendar calendar) {
     ...
   }
 }
 

See Also:
Adding Custom Components

Constructor Summary
ExtensionGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionGenerator

public ExtensionGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2010. All Rights Reserved.