001 ///////////////////////////////////////////////// 002 //This file is part of Sears project. 003 //Subtitle Editor And Re-Synch 004 //A tool to easily modify and resynch movies subtitles. 005 ///////////////////////////////////////////////// 006 //This program is free software; 007 //you can redistribute it and/or modify it under the terms 008 //of the GNU General Public License 009 //as published by the Free Software Foundation; 010 //either version 2 of the License, or (at your option) any later version. 011 ///////////////////////////////////////////////// 012 //Sears project is available under sourceforge 013 //at adress: http://sourceforge.net/projects/sears/ 014 //Copyright (C) 2005 Booba Skaya 015 //Mail: booba.skaya@gmail.com 016 ///////////////////////////////////////////////// 017 018 ////////////////////////////////////////////////////// 019 // this file comes from the EawtWrapper librairie // 020 // information: www.daem0n.fr/eawt // 021 ////////////////////////////////////////////////////// 022 023 package sears.tools.eawt; 024 025 /** 026 * <u>com.apple.eawt.ApplicationListener</u> 027 * The listener interface for receiving ApplicationEvents. 028 */ 029 public interface ApplicationListener { 030 031 /** 032 * <u>com.apple.eawt.ApplicationListener#handleAbout(com.apple.eawt.ApplicationEvent)</u> 033 * <br>Called when the user selects the About item in the application menu. 034 * @param event an ApplicationEvent initiated by the user choosing About in the application menu 035 */ 036 public void handleAbout(Object event); 037 038 /** 039 * <u>com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)</u> 040 * <br>Called when the application receives an Open Application event from the Finder or another application. 041 * @param event the Open Application event 042 */ 043 public void handleOpenApplication(Object event); 044 045 /** 046 * <u>com.apple.eawt.ApplicationListener#handleOpenApplication(com.apple.eawt.ApplicationEvent)</u> 047 * <br>Called when the application receives an Open Document event from the Finder or another application. 048 * @param event an Open Document event with reference to the file to be opened 049 */ 050 public void handleOpenFile(Object event); 051 052 /** 053 * <u>com.apple.eawt.ApplicationListener#handlePreferences(com.apple.eawt.ApplicationEvent)</u> 054 * <br>Called when the Preference item in the application menu is selected. 055 * @param event triggered when the user selects Preferences from the application menu 056 */ 057 public void handlePreferences(Object event); 058 059 /** 060 * <u>com.apple.eawt.ApplicationListener#handlePrintFile(com.apple.eawt.ApplicationEvent)</u> 061 * <br>Called when the application is sent a request to print a particular file or files. 062 * @param event a Print Document event with a reference to the file(s) to be printed 063 */ 064 public void handlePrintFile(Object event); 065 066 /** 067 * <u>com.apple.eawt.ApplicationListener#handleQuit(com.apple.eawt.ApplicationEvent)</u> 068 * <br>Called when the application is sent the Quit event. 069 * @param event a Quit Application event 070 */ 071 public void handleQuit(Object event); 072 073 /** 074 * <u>com.apple.eawt.ApplicationListener#handleReOpenApplication(com.apple.eawt.ApplicationEvent)</u> 075 * <br>Called when the application receives a Reopen Application event from the Finder or another application. 076 * @param event the Reopen Application event 077 */ 078 public void handleReOpenApplication(Object event); 079 }