public class ExtensionGenerator extends Object
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:
<output>
is the path of the JAR file to be generated<name:class>
defines an extension, where:
name
is the name of the component to be integratedclass
is the name of the component class
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:
UIComponent
(or better yet extend
AbstractUIComponent
)
public class Calendar extends AbstractUIComponent {
public static final String TYPE_NAME = "calendar";
public static final Class[] SWING_CLASSES = {JCalendar.class};
public Calendar(JCalendar calendar) {
...
}
}
Constructor and Description |
---|
ExtensionGenerator() |
Copyright © 2004–2016. All rights reserved.