public class ScriptApplication extends Object implements Application
Application.AboutHandler, Application.Adapter, Application.UncaughtExceptionHandler, Application.UnprocessedKeyHandler
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCES_KEY |
static String |
SRC_KEY |
static String |
STYLESHEET_KEY |
Constructor and Description |
---|
ScriptApplication() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
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.
|
public static final String SRC_KEY
public static final String RESOURCES_KEY
public static final String STYLESHEET_KEY
public void startup(Display display, Map<String,String> properties) throws Exception
Application
startup
in interface Application
display
- The display on which this application was started.properties
- Initialization properties passed to the application.Exception
public boolean shutdown(boolean optional)
Application
shutdown
in interface Application
optional
- If true, the shutdown may be cancelled by returning a value of
true.public void resume()
Application
resume
in interface Application
public void suspend()
Application
suspend
in interface Application
public static void main(String[] args)