- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/applet/AppletContext.java (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/applet/AppletContext.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 /* AppletContext.java -- Access the applet's runtime environment.2 Copyright (C) 1999 Free Software Foundation, Inc.3 1 /* AppletContext.java -- 2 Copyright (C) 1999 Free Software Foundation, Inc. 3 4 4 This file is part of GNU Classpath. 5 5 6 6 GNU Classpath is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 GNU Classpath is distributed in the hope that it will be useful, but 12 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 14 General Public License for more details. 15 15 16 16 You should have received a copy of the GNU General Public License 17 17 along with GNU Classpath; see the file COPYING. If not, write to the 18 18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 19 19 02111-1307 USA. 20 20 21 21 Linking this library statically or dynamically with other modules is 22 22 making a combined work based on this library. Thus, the terms and … … 40 40 41 41 import java.awt.Image; 42 43 42 44 import java.net.URL; 43 45 import java.util.Enumeration; 46 44 47 45 48 /** 46 * This interface allows an applet access to the browser to retrieve 47 * additional data files and display documents. It also allows the 48 * applet to find out other applets in the same document. 49 * 50 * @author Aaron M. Renn ([email protected]) 51 */ 49 * This interface allows an applet access to the browser to retrieve 50 * additional data files and display documents. It also allows the 51 * applet to find out other applets in the same document. 52 * 53 * @author Aaron M. Renn ([email protected]) 54 * @since 1.0 55 * @status updated to 1.4 56 */ 52 57 public interface AppletContext 53 58 { 54 59 /** 55 * Returns an audio clip from the specified URL.56 *57 * @param url The URL of the audio clip.58 *59 * @return The retrieved audio clip // FIXME: What happens on error?60 */60 * Returns an audio clip from the specified URL. 61 * 62 63 64 65 */ 61 66 AudioClip getAudioClip(URL url); 62 67 63 68 /** 64 * Returns an image from the specified URL. Note that the image is not65 * actually retrieved until the applet attempts to display it, so this66 * method returns immediately.67 *68 * @param url The URL of the image.69 *70 * @return The retrieved image. // FIXME: What happens on eror?71 */69 * Returns an image from the specified URL. Note that the image is not 70 * actually retrieved until the applet attempts to display it, so this 71 * method returns immediately. 72 * 73 74 75 76 */ 72 77 Image getImage(URL url); 73 78 74 79 /** 75 * Returns the applet in the document for this object that has the 76 * specified name. 77 * 78 * @param name The applet name. 79 * 80 * @return The requested applet, or <code>null</code> if an applet with 81 * the requested name cannot be found. 82 */ 80 * Returns the applet in the document for this object that has the 81 * specified name. 82 * 83 * @param name the applet name 84 * @return the requested applet, or <code>null</code> if not found 85 */ 83 86 Applet getApplet(String name); 84 87 85 88 /** 86 * Returns a list of all the applets in the document for this object.87 *88 * @return A list of all the applets in the document for this object.89 */89 * Returns a list of all the applets in the document for this object. 90 * 91 92 */ 90 93 Enumeration getApplets(); 91 94 92 95 /** 93 * Displays the web page pointed to by the specified URL in the window94 * for this object. This page replaces the document that is currently95 * there.96 *97 * @param url The URL of the web page to load.98 */96 * Displays the web page pointed to by the specified URL in the window 97 * for this object. This page replaces the document that is currently 98 * there. 99 * 100 101 */ 99 102 void showDocument(URL url); 100 103 101 104 /** 102 * Displays the web page pointed to be the sepcified URL in the window 103 * with the specified name. The standard names "_top", "_blank", 104 * "_parent", and "_self" are allowed. 105 * 106 * @param url The URL of the web page to load. 107 * @param target The target window. 108 */ 105 * Displays the web page pointed to be the sepcified URL in the window 106 * with the specified name. The standard names "_top", "_blank", 107 * "_parent", and "_self" are allowed. An applet viewer may disregard 108 * this request. 109 * 110 * @param url the URL of the web page to load 111 * @param target the target window 112 */ 109 113 void showDocument(URL url, String target); 110 114 111 115 /** 112 * Displays the specified message in the status window if that window113 * exists.114 *115 * @param message The status message.116 */116 * Displays the specified message in the status window if that window 117 * exists. 118 * 119 120 */ 117 121 void showStatus(String message); 118 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 119 154 } // interface AppletContext -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
