org.tbee.swing.framework
Class Application

java.lang.Object
  extended by org.tbee.swing.framework.Application

public class Application
extends java.lang.Object

TODO: icon sets


Nested Class Summary
static interface Application.ScreenClosedListener
           
 
Field Summary
static java.lang.String APPLICATIONCONTEXT_PROPERTY_ID
           
static java.lang.String AUTOQUIT_PROPERTY_ID
           
 nl.knowledgeplaza.util.ListenerHandler<Application.ScreenClosedListener,Screen> screenClosedListeners
           
 
Constructor Summary
Application()
           
 
Method Summary
protected  void bootstrap(ApplicationContext applicationContext)
           
protected  void configureGUI()
          configure the gui
protected  void construct()
          construct the non-gui stuff
protected  void constructGUI()
          construct the gui
protected  void destruct()
           
protected  void destructGUI()
           
 void fireScreenClosed(Screen screen)
          ScreenClosedListener
static Application getApplication()
           
 ApplicationContext getApplicationContext()
          ApplicationContext:
 boolean getAutoQuit()
          AutoQuit: quit the application when all screens are closed
static void main(java.lang.String[] args)
           
protected  Screen newEmptyScreen()
          create an empty screen: a special utility method for quickly creating a screen in an application without an external screen class
 Screen open(Screen screen)
           
 Screen open(Screen screen, boolean visibleImmediately)
           
 void quit()
           
 void quit(int status)
           
 void setApplicationContext(ApplicationContext value)
           
 void setAutoQuit(boolean value)
           
static void startup(java.lang.String classname, ApplicationContext applicationContext)
          Start the application class within the context
 Application withApplicationContext(ApplicationContext value)
           
 Application withAutoQuit(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATIONCONTEXT_PROPERTY_ID

public static final java.lang.String APPLICATIONCONTEXT_PROPERTY_ID
See Also:
Constant Field Values

AUTOQUIT_PROPERTY_ID

public static final java.lang.String AUTOQUIT_PROPERTY_ID
See Also:
Constant Field Values

screenClosedListeners

public final nl.knowledgeplaza.util.ListenerHandler<Application.ScreenClosedListener,Screen> screenClosedListeners
Constructor Detail

Application

public Application()
Method Detail

getApplication

public static Application getApplication()

getApplicationContext

public ApplicationContext getApplicationContext()
ApplicationContext:


setApplicationContext

public void setApplicationContext(ApplicationContext value)

withApplicationContext

public Application withApplicationContext(ApplicationContext value)

getAutoQuit

public boolean getAutoQuit()
AutoQuit: quit the application when all screens are closed


setAutoQuit

public void setAutoQuit(boolean value)

withAutoQuit

public Application withAutoQuit(boolean value)

startup

public static void startup(java.lang.String classname,
                           ApplicationContext applicationContext)
Start the application class within the context

Parameters:
classname -
application - context

bootstrap

protected void bootstrap(ApplicationContext applicationContext)
Parameters:
applicationContext -

quit

public void quit(int status)
Parameters:
applicationContext -

quit

public void quit()

construct

protected void construct()
construct the non-gui stuff


destruct

protected void destruct()

configureGUI

protected void configureGUI()
configure the gui


constructGUI

protected void constructGUI()
construct the gui


destructGUI

protected void destructGUI()

open

public Screen open(Screen screen)

open

public Screen open(Screen screen,
                   boolean visibleImmediately)

newEmptyScreen

protected Screen newEmptyScreen()
create an empty screen: a special utility method for quickly creating a screen in an application without an external screen class


fireScreenClosed

public void fireScreenClosed(Screen screen)
ScreenClosedListener


main

public static void main(java.lang.String[] args)
Parameters:
args -


Copyright © 2010. All Rights Reserved.