|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.lafwidget.ant.LafMainClassAugmenter
public class LafMainClassAugmenter
Augments the main LAF classes with laf-widget behaviour. Is based on sample adapter from ASM distribution.
| Nested Class Summary | |
|---|---|
protected class |
LafMainClassAugmenter.AugmentClassAdapter
Class adapter that augments the UI functionality. |
| Field Summary | |
|---|---|
protected static java.lang.String |
METHOD_NAME
Method name to augment. |
| Constructor Summary | |
|---|---|
LafMainClassAugmenter()
Creates a new augmenter. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
augmentClass(java.lang.String dir,
java.lang.String name)
Augments a single class with additional UI behaviour. |
static void |
main(java.lang.String[] args)
Test methods. |
void |
process(java.lang.String toStrip,
java.io.File file,
java.lang.String mainClassName)
Processes a single file or a directory, augmenting all main LAF classes. |
void |
setDelegatesToAdd(java.lang.String[] delegatesToAdd)
Sets the list of delegates that need to be added. |
void |
setVerbose(boolean isVerbose)
Sets the verbosity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String METHOD_NAME
| Constructor Detail |
|---|
public LafMainClassAugmenter()
| Method Detail |
|---|
protected java.lang.String augmentClass(java.lang.String dir,
java.lang.String name)
dir - Root directory for the library that contains the class.name - Fully-qualified class name.
AugmentException - If the augmentation process failed.
public void process(java.lang.String toStrip,
java.io.File file,
java.lang.String mainClassName)
toStrip - The leading prefix to strip from the file names. Is used to
create fully-qualified class name.file - File resource (can point to a single file or to a directory).mainClassName - The class name of the main LAF class.
AugmentException - If the augmentation process failed.public void setVerbose(boolean isVerbose)
isVerbose - New value for augmentation process verbosity.public void setDelegatesToAdd(java.lang.String[] delegatesToAdd)
delegatesToAdd - The list of delegates that need to be added.
public static void main(java.lang.String[] args)
throws AugmentException
args -
AugmentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||