Groovy Documentation

griffon.swt
[Java] Class AbstractSWTGriffonApplication

java.lang.Object
  org.codehaus.griffon.runtime.core.AbstractObservable
      org.codehaus.griffon.runtime.core.AbstractGriffonApplication
          griffon.swt.AbstractSWTGriffonApplication
All Implemented Interfaces:
SWTGriffonApplication, StandaloneGriffonApplication

public abstract class AbstractSWTGriffonApplication
extends AbstractGriffonApplication

Basic implementation of GriffonApplication that runs in standalone mode using SWT.

Authors:
Andres Almiray


Field Summary
private static Class[] CTOR_ARGS

protected org.eclipse.swt.widgets.Display defaultDisplay

private WindowDisplayHandler defaultWindowDisplayHandler

private WindowDisplayHandler windowDisplayHandler

private WindowManager windowManager

 
Fields inherited from class AbstractGriffonApplication
EMPTY_ARGS
 
Constructor Summary
AbstractSWTGriffonApplication()

AbstractSWTGriffonApplication(String[] args)

 
Method Summary
void bootstrap()

protected void callReady(org.eclipse.swt.widgets.Shell startingWindow)

Calls the ready lifecycle method after the UI thread calms down

Object createApplicationContainer()

void exit()

org.eclipse.swt.widgets.Display getDisplay()

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, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, 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, eventOutsideUI, eventOutsideUI, eventAsync, eventAsync, addShutdownHandler, removeShutdownHandler, getPhase, getArtifactManager, getStartupArgs, getLog, getActionManager, isUIThread, 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, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, setResourceResolver, setAddonManager, setArtifactManager, setMvcGroupManager, setServiceManager, setLocaleAsString, getMessageSource, setMessageSource, resolveResourceResolver, setActionManager, 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

@SuppressWarnings("rawtypes")
private static final Class[] CTOR_ARGS


defaultDisplay

protected final org.eclipse.swt.widgets.Display defaultDisplay


defaultWindowDisplayHandler

private final WindowDisplayHandler defaultWindowDisplayHandler


windowDisplayHandler

private WindowDisplayHandler windowDisplayHandler


windowManager

private final WindowManager windowManager


 
Constructor Detail

AbstractSWTGriffonApplication

public AbstractSWTGriffonApplication()


AbstractSWTGriffonApplication

public AbstractSWTGriffonApplication(String[] args)


 
Method Detail

bootstrap

public void bootstrap()


callReady

protected void callReady(org.eclipse.swt.widgets.Shell startingWindow)
Calls the ready lifecycle method after the UI thread calms down


createApplicationContainer

public Object createApplicationContainer()


exit

public void exit()


getDisplay

public org.eclipse.swt.widgets.Display getDisplay()


getUIThreadHandler

protected UIThreadHandler getUIThreadHandler()


getWindowDisplayHandler

public WindowDisplayHandler getWindowDisplayHandler()


getWindowManager

public WindowManager getWindowManager()


realize

public void realize()


resolveWindowDisplayHandler

public final WindowDisplayHandler resolveWindowDisplayHandler()


run

@SuppressWarnings({"unchecked", "rawtypes"})
public static void run(Class applicationClass, String[] args)


setWindowDisplayHandler

public void setWindowDisplayHandler(WindowDisplayHandler windowDisplayHandler)


show

public void show()


shutdown

public boolean shutdown()


 

Groovy Documentation