< prev index next >

src/java.desktop/share/classes/java/applet/AppletContext.java

Print this page




 100      * Requests that the browser or applet viewer show the Web page
 101      * indicated by the {@code url} argument. The browser or
 102      * applet viewer determines which window or frame to display the
 103      * Web page. This method may be ignored by applet contexts that
 104      * are not browsers.
 105      *
 106      * @param   url   an absolute URL giving the location of the document.
 107      */
 108     void showDocument(URL url);
 109 
 110     /**
 111      * Requests that the browser or applet viewer show the Web page
 112      * indicated by the {@code url} argument. The
 113      * {@code target} argument indicates in which HTML frame the
 114      * document is to be displayed.
 115      * The target argument is interpreted as follows:
 116      *
 117      * <table class="striped">
 118      * <caption>Target arguments and their descriptions</caption>
 119      * <thead>
 120      * <tr><th>Target Argument</th>
 121      * <th>Description</th></tr>

 122      * </thead>
 123      * <tbody>
 124      * <tr><td>{@code "_self"}  <td>Show in the window and frame that
 125      *                                   contain the applet.</tr>
 126      * <tr><td>{@code "_parent"}<td>Show in the applet's parent frame. If
 127      *                                   the applet's frame has no parent frame,
 128      *                                   acts the same as "_self".</tr>
 129      * <tr><td>{@code "_top"}   <td>Show in the top-level frame of the applet's
 130      *                                   window. If the applet's frame is the
 131      *                                   top-level frame, acts the same as "_self".</tr>
 132      * <tr><td>{@code "_blank"} <td>Show in a new, unnamed
 133      *                                   top-level window.</tr>
 134      * <tr><td><i>name</i><td>Show in the frame or window named <i>name</i>. If
 135      *                        a target named <i>name</i> does not already exist, a
 136      *                        new top-level window with the specified name is created,
 137      *                        and the document is shown there.</tr>





 138      * </tbody>
 139      * </table>
 140      * <p>
 141      * An applet viewer or browser is free to ignore {@code showDocument}.
 142      *
 143      * @param   url   an absolute URL giving the location of the document.
 144      * @param   target   a {@code String} indicating where to display
 145      *                   the page.
 146      */
 147     public void showDocument(URL url, String target);
 148 
 149     /**
 150      * Requests that the argument string be displayed in the
 151      * "status window". Many browsers and applet viewers
 152      * provide such a window, where the application can inform users of
 153      * its current state.
 154      *
 155      * @param   status   a string to display in the status window.
 156      */
 157     void showStatus(String status);




 100      * Requests that the browser or applet viewer show the Web page
 101      * indicated by the {@code url} argument. The browser or
 102      * applet viewer determines which window or frame to display the
 103      * Web page. This method may be ignored by applet contexts that
 104      * are not browsers.
 105      *
 106      * @param   url   an absolute URL giving the location of the document.
 107      */
 108     void showDocument(URL url);
 109 
 110     /**
 111      * Requests that the browser or applet viewer show the Web page
 112      * indicated by the {@code url} argument. The
 113      * {@code target} argument indicates in which HTML frame the
 114      * document is to be displayed.
 115      * The target argument is interpreted as follows:
 116      *
 117      * <table class="striped">
 118      * <caption>Target arguments and their descriptions</caption>
 119      * <thead>
 120      *   <tr>
 121      *     <th scope="col">Target Argument
 122      *     <th scope="col">Description
 123      * </thead>
 124      * <tbody>
 125      *   <tr>
 126      *     <th scope="row">{@code "_self"}
 127      *     <td>Show in the window and frame that contain the applet.
 128      *   <tr>
 129      *     <th scope="row">{@code "_parent"}
 130      *     <td>Show in the applet's parent frame. If the applet's frame has no
 131      *     parent frame, acts the same as "_self".
 132      *   <tr>
 133      *     <th scope="row">{@code "_top"}
 134      *     <td>Show in the top-level frame of the applet's window. If the
 135      *     applet's frame is the top-level frame, acts the same as "_self".
 136      *   <tr>
 137      *     <th scope="row">{@code "_blank"}
 138      *     <td>Show in a new, unnamed top-level window.
 139      *   <tr>
 140      *     <th scope="row"><i>name</i>
 141      *     <td>Show in the frame or window named <i>name</i>. If a target named
 142      *     <i>name</i> does not already exist, a new top-level window with the
 143      *     specified name is created, and the document is shown there.
 144      * </tbody>
 145      * </table>
 146      * <p>
 147      * An applet viewer or browser is free to ignore {@code showDocument}.
 148      *
 149      * @param   url   an absolute URL giving the location of the document.
 150      * @param   target   a {@code String} indicating where to display
 151      *                   the page.
 152      */
 153     public void showDocument(URL url, String target);
 154 
 155     /**
 156      * Requests that the argument string be displayed in the
 157      * "status window". Many browsers and applet viewers
 158      * provide such a window, where the application can inform users of
 159      * its current state.
 160      *
 161      * @param   status   a string to display in the status window.
 162      */
 163     void showStatus(String status);


< prev index next >