|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
griffon.core.ThreadingHandlergriffon.swing.SwingGriffonApplication
griffon.core.MVCHandler
griffon.core.ResourceHandler
public interface SwingGriffonApplication extends GriffonApplication
Defines an additional contract that all Swing based application should follow.
Windows in a Swing application should be handled by a WindowManager, which in turn requires a concrete implementation of the WindowDisplayHandler to be available on the target application.
| Method Summary | |
|---|---|
WindowDisplayHandler
|
getWindowDisplayHandler()
Returns the WindowDisplayHandler defined for this application. |
WindowManager
|
getWindowManager()
Returns the WindowManager associated with this application. |
WindowDisplayHandler
|
resolveWindowDisplayHandler()
Resolves the WindowDisplayHandler to be used with WindowManager. |
void
|
setWindowDisplayHandler(WindowDisplayHandler windowDisplayHandler)
Sets the WindowDisplayHandler to be used in conjuction with WindowManager to handle window showing/hiding. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Method Detail |
|---|
public WindowDisplayHandler getWindowDisplayHandler()
An application implementation may opt for ignoring this property, in which case a DefaultWindowDisplayHandler should be used.
public WindowManager getWindowManager()
Every GriffonSwingApplication must have a non-null instance.
public WindowDisplayHandler resolveWindowDisplayHandler()
Should NEVER return null. If no custom WindowDisplayHandler has been defined for this application then this method should return an instance of DefaulWindowDisplayHandler.
public void setWindowDisplayHandler(WindowDisplayHandler windowDisplayHandler)
If set to null the application should revert to using an instance of DefaultWindowDisplayHandler.
windowDisplayHandler - the instance to use, may be null.
Groovy Documentation