sears.tools.eawt
Class SearsApplicationListener

java.lang.Object
  extended by sears.tools.eawt.ApplicationAdapter
      extended by sears.tools.eawt.SearsApplicationListener
All Implemented Interfaces:
ApplicationListener

public class SearsApplicationListener
extends ApplicationAdapter

This class will implement com.apple.eawt.ApplicationListener interface


Constructor Summary
SearsApplicationListener()
          Construct a new instance
 
Method Summary
 void handleAbout(java.lang.Object event)
          com.apple.eawt.ApplicationListener#handleAbout(com.apple.eawt.ApplicationEvent)
Called when the user selects the About item in the application menu.
 void handleOpenApplication(java.lang.Object event)
          com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)
Called when the application receives an Open Application event from the Finder or another application.
 void handleOpenFile(java.lang.Object event)
          com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)
Called when the application receives an Open Document event from the Finder or another application.
 void handlePreferences(java.lang.Object event)
          com.apple.eawt.ApplicationListener#handlePreferences(com.apple.eawt.ApplicationEvent)
Called when the Preference item in the application menu is selected.
 void handleQuit(java.lang.Object arg0)
          com.apple.eawt.ApplicationListener#handleQuit(com.apple.eawt.ApplicationEvent)
Called when the application is sent the Quit event.
 
Methods inherited from class sears.tools.eawt.ApplicationAdapter
handlePrintFile, handleReOpenApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearsApplicationListener

public SearsApplicationListener()
Construct a new instance

Throws:
java.lang.NullPointerException - if frame is null
Method Detail

handleAbout

public void handleAbout(java.lang.Object event)
Description copied from interface: ApplicationListener
com.apple.eawt.ApplicationListener#handleAbout(com.apple.eawt.ApplicationEvent)
Called when the user selects the About item in the application menu.

Specified by:
handleAbout in interface ApplicationListener
Overrides:
handleAbout in class ApplicationAdapter
Parameters:
event - an ApplicationEvent initiated by the user choosing About in the application menu

handleOpenApplication

public void handleOpenApplication(java.lang.Object event)
Description copied from interface: ApplicationListener
com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)
Called when the application receives an Open Application event from the Finder or another application.

Specified by:
handleOpenApplication in interface ApplicationListener
Overrides:
handleOpenApplication in class ApplicationAdapter
Parameters:
event - the Open Application event

handleOpenFile

public void handleOpenFile(java.lang.Object event)
Description copied from interface: ApplicationListener
com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)
Called when the application receives an Open Document event from the Finder or another application.

Specified by:
handleOpenFile in interface ApplicationListener
Overrides:
handleOpenFile in class ApplicationAdapter
Parameters:
event - an Open Document event with reference to the file to be opened

handlePreferences

public void handlePreferences(java.lang.Object event)
Description copied from interface: ApplicationListener
com.apple.eawt.ApplicationListener#handlePreferences(com.apple.eawt.ApplicationEvent)
Called when the Preference item in the application menu is selected.

Specified by:
handlePreferences in interface ApplicationListener
Overrides:
handlePreferences in class ApplicationAdapter
Parameters:
event - triggered when the user selects Preferences from the application menu

handleQuit

public void handleQuit(java.lang.Object arg0)
Description copied from interface: ApplicationListener
com.apple.eawt.ApplicationListener#handleQuit(com.apple.eawt.ApplicationEvent)
Called when the application is sent the Quit event.

Specified by:
handleQuit in interface ApplicationListener
Overrides:
handleQuit in class ApplicationAdapter
Parameters:
arg0 - a Quit Application event