pivot.wtk
Interface Application

All Known Implementing Classes:
ScriptApplication

public interface Application

Represents the entry point into a WTK application.

Author:
gbrown

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, Dictionary<java.lang.String,java.lang.String> properties)
          Called when the application is starting up.
 void suspend()
          Called to notify the application that it is being suspended.
 

Method Detail

startup

void startup(Display display,
             Dictionary<java.lang.String,java.lang.String> properties)
             throws java.lang.Exception
Called when the application is starting up.

Parameters:
display - The display on which this application was started.
properties - Initialization properties passed to the application.
Throws:
java.lang.Exception

shutdown

boolean shutdown(boolean optional)
                 throws java.lang.Exception
Called when the application is being shut down.

Parameters:
optional - If true, the shutdown may be canceled by returning a value of false.
Returns:
true to continue shutdown, false to cancel.
Throws:
java.lang.Exception

suspend

void suspend()
             throws java.lang.Exception
Called to notify the application that it is being suspended.

Throws:
java.lang.Exception

resume

void resume()
            throws java.lang.Exception
Called when a suspended application has been resumed.

Throws:
java.lang.Exception