|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.uispec4j.interception.MainClassAdapter
public class MainClassAdapter
Adapter that intercepts the window displayed by the main() of a given class.
This adapter keeps the reference of the intercepted window, so that main() is not called on subsequent calls. If you need to run main() again, you can either callreset() or create a new
adapter.
| Constructor Summary | |
|---|---|
MainClassAdapter(java.lang.Class mainClass,
java.lang.String... args)
|
|
| Method Summary | |
|---|---|
Window |
getMainWindow()
|
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainClassAdapter(java.lang.Class mainClass,
java.lang.String... args)
| Method Detail |
|---|
public Window getMainWindow()
getMainWindow in interface UISpecAdapterpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||