org.apache.pivot.wtk
Class Application.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.Application.Adapter
All Implemented Interfaces:
Application
Enclosing interface:
Application

public static class Application.Adapter
extends Object
implements Application

Application adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.Application
Application.AboutHandler, Application.Adapter, Application.UncaughtExceptionHandler, Application.UnprocessedKeyHandler
 
Constructor Summary
Application.Adapter()
           
 
Method Summary
 void resume()
          Called when a suspended application has been resumed.
 boolean shutdown(boolean optional)
          Called when the application is being shut down.
 void startup(Display display, Map<String,String> properties)
          Called when the application is starting up.
 void suspend()
          Called to notify the application that it is being suspended.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application.Adapter

public Application.Adapter()
Method Detail

startup

public void startup(Display display,
                    Map<String,String> properties)
             throws Exception
Description copied from interface: Application
Called when the application is starting up.

Specified by:
startup in interface Application
Parameters:
display - The display on which this application was started.
properties - Initialization properties passed to the application.
Throws:
Exception

shutdown

public boolean shutdown(boolean optional)
                 throws Exception
Description copied from interface: Application
Called when the application is being shut down.

Specified by:
shutdown in interface Application
Parameters:
optional - If true, the shutdown may be cancelled by returning a value of true.
Returns:
true to cancel shutdown, false to continue.
Throws:
Exception

suspend

public void suspend()
             throws Exception
Description copied from interface: Application
Called to notify the application that it is being suspended.

Specified by:
suspend in interface Application
Throws:
Exception

resume

public void resume()
            throws Exception
Description copied from interface: Application
Called when a suspended application has been resumed.

Specified by:
resume in interface Application
Throws:
Exception