Groovy Documentation

griffon.lanterna
[Java] Class AbstractLanternaGriffonApplication

java.lang.Object
  org.codehaus.griffon.runtime.core.AbstractObservable
      org.codehaus.griffon.runtime.core.AbstractGriffonApplication
          griffon.lanterna.AbstractLanternaGriffonApplication
All Implemented Interfaces:
LanternaGriffonApplication, StandaloneGriffonApplication

public abstract class AbstractLanternaGriffonApplication
extends AbstractGriffonApplication

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

Authors:
Andres Almiray


Field Summary
private static Class[] CTOR_ARGS

private WindowDisplayHandler defaultWindowDisplayHandler

private com.googlecode.lanterna.gui.GUIScreen screen

private WindowDisplayHandler windowDisplayHandler

private WindowManager windowManager

 
Fields inherited from class AbstractGriffonApplication
EMPTY_ARGS, REF_KEY_START, REF_KEY_END, REF_KEY_START, REF_KEY_END
 
Constructor Summary
AbstractLanternaGriffonApplication()

AbstractLanternaGriffonApplication(String[] args)

 
Method Summary
void bootstrap()

protected void callReady(com.googlecode.lanterna.gui.Window startingWindow)

Calls the ready lifecycle method after the UI thread calms down

Object createApplicationContainer()

void exit()

com.googlecode.lanterna.gui.GUIScreen getScreen()

protected UIThreadHandler getUIThreadHandler(com.googlecode.lanterna.gui.GUIScreen screen)

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, event, setConfig, getBindings, setBindings, getLocale, getMetadata, getAppConfigClass, getConfigClass, getBuilderClass, getBuilderConfig, setBuilderConfig, getEventsClass, getEventsConfig, setEventsConfig, getModels, getViews, getControllers, getBuilders, getGroups, getAddonManager, getMvcGroupManager, getServiceManager, createApplicationContainer, startup, canShutdown, addApplicationEventListener, addApplicationEventListener, addApplicationEventListener, addApplicationEventListener, addApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, removeApplicationEventListener, isEventPublishingEnabled, setEventPublishingEnabled, eventOutsideUI, eventOutsideUI, eventOutsideUI, eventAsync, 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, resolveMessageValue, formatMessage, formatMessage, formatMessage, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResource, resolveResourceValue, formatResource, formatResource, formatResource, setResourceResolver, getEventRouter, setEventRouter, setAddonManager, setArtifactManager, setMvcGroupManager, setServiceManager, setLocaleAsString, getMessageSource, setMessageSource, getResourceResolver, 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


defaultWindowDisplayHandler

private final WindowDisplayHandler defaultWindowDisplayHandler


screen

private final com.googlecode.lanterna.gui.GUIScreen screen


windowDisplayHandler

private WindowDisplayHandler windowDisplayHandler


windowManager

private final WindowManager windowManager


 
Constructor Detail

AbstractLanternaGriffonApplication

public AbstractLanternaGriffonApplication()


AbstractLanternaGriffonApplication

public AbstractLanternaGriffonApplication(String[] args)


 
Method Detail

bootstrap

public void bootstrap()


callReady

protected void callReady(com.googlecode.lanterna.gui.Window startingWindow)
Calls the ready lifecycle method after the UI thread calms down


createApplicationContainer

public Object createApplicationContainer()


exit

public void exit()


getScreen

public com.googlecode.lanterna.gui.GUIScreen getScreen()


getUIThreadHandler

protected UIThreadHandler getUIThreadHandler(com.googlecode.lanterna.gui.GUIScreen screen)


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