Groovy Documentation

griffon.swing
[Java] Class AbstractSwingGriffonApplication

java.lang.Object
  org.codehaus.griffon.runtime.core.AbstractObservable
      org.codehaus.griffon.runtime.core.AbstractGriffonApplication
          griffon.swing.AbstractSwingGriffonApplication
All Implemented Interfaces:
StandaloneGriffonApplication, SwingGriffonApplication

public abstract class AbstractSwingGriffonApplication
extends AbstractGriffonApplication

Basic implementation of GriffonApplication that runs in standalone/webstart mode using Swing.

Authors:
Danno Ferrin
Andres Almiray
Since:
0.9.2


Field Summary
private static Class[] CTOR_ARGS

private WindowDisplayHandler defaultWindowDisplayHandler

private WindowDisplayHandler windowDisplayHandler

private WindowManager windowManager

 
Fields inherited from class AbstractGriffonApplication
EMPTY_ARGS
 
Constructor Summary
AbstractSwingGriffonApplication()

AbstractSwingGriffonApplication(String[] args)

 
Method Summary
void bootstrap()

protected void callReady()

Calls the ready lifecycle method after the UI thread calms down

Object createApplicationContainer()

void exit()

protected UIThreadHandler getUIThreadHandler()

WindowDisplayHandler getWindowDisplayHandler()

WindowManager getWindowManager()

void realize()

WindowDisplayHandler resolveWindowDisplayHandler()

static void run(Class applicationClass, String[] args)

void setWindowDisplayHandler(WindowDisplayHandler windowDisplayHandler)

void show()

boolean shutdown()

 
Methods inherited from class AbstractGriffonApplication
shutdown, newInstance, getResourceAsStream, getResources, initialize, ready, getServices, setLocale, getConfig, event, event, setConfig, getLocale, getBindings, setBindings, getMetadata, getAppConfigClass, getConfigClass, getBuilderClass, getBuilderConfig, setBuilderConfig, getEventsClass, getEventsConfig, setEventsConfig, getModels, getViews, getControllers, getBuilders, getGroups, getAddonManager, getMvcGroupManager, getServiceManager, createApplicationContainer, startup, canShutdown, addApplicationEventListener, addApplicationEventListener, addApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, isEventPublishingEnabled, setEventPublishingEnabled, eventOutside, eventOutside, eventOutsideUI, eventOutsideUI, eventAsync, eventAsync, addShutdownHandler, removeShutdownHandler, getPhase, getArtifactManager, getStartupArgs, getLog, isUIThread, execAsync, execSync, execOutside, execInsideUIAsync, execInsideUISync, execOutsideUI, execFuture, execFuture, execFuture, execFuture, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, getResourceAsURL, setAddonManager, setArtifactManager, setMvcGroupManager, setServiceManager, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class AbstractObservable
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

CTOR_ARGS

private static final Class[] CTOR_ARGS


defaultWindowDisplayHandler

private final WindowDisplayHandler defaultWindowDisplayHandler


windowDisplayHandler

private WindowDisplayHandler windowDisplayHandler


windowManager

private final WindowManager windowManager


 
Constructor Detail

AbstractSwingGriffonApplication

public AbstractSwingGriffonApplication()


AbstractSwingGriffonApplication

public AbstractSwingGriffonApplication(String[] args)


 
Method Detail

bootstrap

public void bootstrap()


callReady

protected void callReady()
Calls the ready lifecycle method after the UI thread calms down


createApplicationContainer

public Object createApplicationContainer()


exit

public void exit()


getUIThreadHandler

protected UIThreadHandler getUIThreadHandler()


getWindowDisplayHandler

public WindowDisplayHandler getWindowDisplayHandler()


getWindowManager

public WindowManager getWindowManager()


realize

public void realize()


resolveWindowDisplayHandler

public final WindowDisplayHandler resolveWindowDisplayHandler()


run

public static void run(Class applicationClass, String[] args)


setWindowDisplayHandler

public void setWindowDisplayHandler(WindowDisplayHandler windowDisplayHandler)


show

public void show()


shutdown

public boolean shutdown()


 

Groovy Documentation