pivot.wtk
Class DesktopApplicationContext

java.lang.Object
  extended by pivot.wtk.ApplicationContext
      extended by pivot.wtk.DesktopApplicationContext

public final class DesktopApplicationContext
extends ApplicationContext

Application context used to execute applications in a native frame window.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.ApplicationContext
ApplicationContext.DisplayHost, ApplicationContext.ResourceCacheDictionary, ApplicationContext.ScheduledCallback
 
Field Summary
 
Fields inherited from class pivot.wtk.ApplicationContext
origin
 
Constructor Summary
DesktopApplicationContext()
           
 
Method Summary
static void exit()
          Terminates the application context.
static void handleAbout()
          Invokes the application's about handler.
static boolean isFullScreen()
          Returns the full-screen mode flag.
static void main(Class<? extends Application> applicationClass, String[] applicationArgs)
          Utility method to make it easier to define main() entry-points into applications.
static void main(String[] args)
          Primary aplication entry point.
static void setFullScreen(boolean fullScreen)
          Sets the full-screen mode flag.
 
Methods inherited from class pivot.wtk.ApplicationContext
beep, createTimer, destroyTimer, getDisplay, getDisplayHost, getJVMVersion, getOrigin, getResourceCache, open, queueCallback, queueCallback, scheduleCallback, scheduleRecurringCallback, scheduleRecurringCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopApplicationContext

public DesktopApplicationContext()
Method Detail

exit

public static void exit()
Terminates the application context.


main

public static void main(String[] args)
Primary aplication entry point.

Parameters:
args -

main

public static final void main(Class<? extends Application> applicationClass,
                              String[] applicationArgs)
Utility method to make it easier to define main() entry-points into applications. For example: public class MyApp implements Application { public static void main(String[] args) throws Exception { DesktopApplicationContext.main(MyApp.class, args); } }

Parameters:
applicationClass -
applicationArgs -

handleAbout

public static void handleAbout()
Invokes the application's about handler. The application must implement the Application.About interface.


isFullScreen

public static boolean isFullScreen()
Returns the full-screen mode flag.


setFullScreen

public static void setFullScreen(boolean fullScreen)
Sets the full-screen mode flag.

Parameters:
fullScreen -