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 voidresume()Deprecated.Called when a suspended application has been resumed.booleanshutdown(boolean optional)Deprecated.Called when the application is being shut down.voidstartup(Display display, Map<java.lang.String,java.lang.String> properties)Deprecated.Called when the application is starting up.voidsuspend()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:ApplicationCalled when the application is starting up.- Specified by:
startupin 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.ExceptionDeprecated.Description copied from interface:ApplicationCalled when the application is being shut down.- Specified by:
shutdownin interfaceApplication- Parameters:
optional- Iftrue, the shutdown may be cancelled by returning a value oftrue.- Returns:
trueto cancel shutdown,falseto proceed with shutdown (default).- Throws:
java.lang.Exception- if there is a problem during shutdown.
-
suspend
public void suspend() throws java.lang.ExceptionDeprecated.Description copied from interface:ApplicationCalled to notify the application that it is being suspended.- Specified by:
suspendin interfaceApplication- Throws:
java.lang.Exception- if there is a problem doing the suspend.
-
resume
public void resume() throws java.lang.ExceptionDeprecated.Description copied from interface:ApplicationCalled when a suspended application has been resumed.- Specified by:
resumein interfaceApplication- Throws:
java.lang.Exception- if there is a problem doing the resume.
-
-