public class LafMainClassAugmenter extends Object
Modifier and Type | Class | Description |
---|---|---|
protected class |
LafMainClassAugmenter.AugmentClassAdapter |
Class adapter that augments the UI functionality.
|
Modifier and Type | Field | Description |
---|---|---|
protected static String |
METHOD_NAME |
Method name to augment.
|
Constructor | Description |
---|---|
LafMainClassAugmenter() |
Creates a new augmenter.
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
augmentClass(String dir,
String name) |
Augments a single class with additional UI behaviour.
|
static void |
main(String[] args) |
Test methods.
|
void |
process(String toStrip,
File file,
String mainClassName) |
Processes a single file or a directory, augmenting all main LAF classes.
|
void |
setDelegatesToAdd(String[] delegatesToAdd) |
Sets the list of delegates that need to be added.
|
void |
setVerbose(boolean isVerbose) |
Sets the verbosity.
|
protected static String METHOD_NAME
protected String augmentClass(String dir, 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(String toStrip, File file, 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(String[] delegatesToAdd)
delegatesToAdd
- The list of delegates that need to be added.public static void main(String[] args) throws AugmentException
args
- AugmentException