|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apple.eawt.ApplicationAdapter
net.talvi.puffinplot.AppleListener
public class AppleListener
AppleListener handles the user actions About, Open, Preferences, and Quit on Mac OS X systems, passing them on to the appropriate methods of a PuffinApp instance specified on initialization.
Method Summary | |
---|---|
void |
handleAbout(com.apple.eawt.ApplicationEvent event)
Handles an Apple About action by calling PuffinApp.about() |
void |
handleOpenFile(com.apple.eawt.ApplicationEvent event)
Handles an Apple Open File action by calling PuffinApp.openFiles() |
void |
handlePreferences(com.apple.eawt.ApplicationEvent event)
Handles an Apple Preferences action by calling PuffinApp.preferences() |
void |
handleQuit(com.apple.eawt.ApplicationEvent event)
Handles an Apple Quit action by calling PuffinApp.quit() |
static void |
initialize(PuffinApp puffinApp)
Instantiates a new AppleListener, which will send events to the supplied PuffinApp instance. |
Methods inherited from class com.apple.eawt.ApplicationAdapter |
---|
handleOpenApplication, handlePrintFile, handleReOpenApplication |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initialize(PuffinApp puffinApp)
puffinApp
- the PuffinApp instance to control using
Apple eventspublic void handleAbout(com.apple.eawt.ApplicationEvent event)
PuffinApp.about()
handleAbout
in interface com.apple.eawt.ApplicationListener
handleAbout
in class com.apple.eawt.ApplicationAdapter
event
- the event corresponding to the About actionPuffinApp.about()
public void handleOpenFile(com.apple.eawt.ApplicationEvent event)
PuffinApp.openFiles()
handleOpenFile
in interface com.apple.eawt.ApplicationListener
handleOpenFile
in class com.apple.eawt.ApplicationAdapter
event
- the event corresponding to the OpenFile actionPuffinApp.openFiles(List files)
public void handlePreferences(com.apple.eawt.ApplicationEvent event)
PuffinApp.preferences()
handlePreferences
in interface com.apple.eawt.ApplicationListener
handlePreferences
in class com.apple.eawt.ApplicationAdapter
event
- the event corresponding to the Preferences actionPuffinApp.showPreferences()
public void handleQuit(com.apple.eawt.ApplicationEvent event)
PuffinApp.quit()
handleQuit
in interface com.apple.eawt.ApplicationListener
handleQuit
in class com.apple.eawt.ApplicationAdapter
event
- the event corresponding to the Quit actionPuffinApp.quit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |