Package org.apache.pivot.wtk
Class Application.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.Application.Adapter
-
- All Implemented Interfaces:
Application
- Enclosing interface:
- Application
@Deprecated public static class Application.Adapter extends java.lang.Object implements Application
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.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
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
resume()
Deprecated.Called when a suspended application has been resumed.boolean
shutdown(boolean optional)
Deprecated.Called when the application is being shut down.void
startup(Display display, Map<java.lang.String,java.lang.String> properties)
Deprecated.Called when the application is starting up.void
suspend()
Deprecated.Called to notify the application that it is being suspended.
-
-
-
Method Detail
-
startup
public void startup(Display display, Map<java.lang.String,java.lang.String> properties) throws java.lang.Exception
Deprecated.Description copied from interface:Application
Called when the application is starting up.- Specified by:
startup
in interfaceApplication
- Parameters:
display
- The display on which this application was started.properties
- Initialization properties passed to the application.- Throws:
java.lang.Exception
- if there is any problem during startup.
-
shutdown
public boolean shutdown(boolean optional) throws java.lang.Exception
Deprecated.Description copied from interface:Application
Called when the application is being shut down.- Specified by:
shutdown
in interfaceApplication
- Parameters:
optional
- Iftrue
, the shutdown may be cancelled by returning a value oftrue
.- Returns:
true
to cancel shutdown,false
to proceed with shutdown (default).- Throws:
java.lang.Exception
- if there is a problem during shutdown.
-
suspend
public void suspend() throws java.lang.Exception
Deprecated.Description copied from interface:Application
Called to notify the application that it is being suspended.- Specified by:
suspend
in interfaceApplication
- Throws:
java.lang.Exception
- if there is a problem doing the suspend.
-
resume
public void resume() throws java.lang.Exception
Deprecated.Description copied from interface:Application
Called when a suspended application has been resumed.- Specified by:
resume
in interfaceApplication
- Throws:
java.lang.Exception
- if there is a problem doing the resume.
-
-