< prev index next >

modules/javafx.graphics/src/main/java/javafx/application/Application.java

Print this page
rev 10897 : 8199357: Remove references to applets and Java Web Start from FX
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 340,353 **** * <p> * NOTE: This method is called on the JavaFX Application Thread. * </p> * * @param primaryStage the primary stage for this application, onto which ! * the application scene can be set. The primary stage will be embedded in ! * the browser if the application was launched as an applet. * Applications may create other stages, if needed, but they will not be ! * primary stages and will not be embedded in the browser. * @throws java.lang.Exception if something goes wrong */ public abstract void start(Stage primaryStage) throws Exception; /** --- 340,352 ---- * <p> * NOTE: This method is called on the JavaFX Application Thread. * </p> * * @param primaryStage the primary stage for this application, onto which ! * the application scene can be set. * Applications may create other stages, if needed, but they will not be ! * primary stages. * @throws java.lang.Exception if something goes wrong */ public abstract void start(Stage primaryStage) throws Exception; /**
*** 369,379 **** private HostServices hostServices = null; /** * Gets the HostServices provider for this application. This provides * the ability to get the code base and document base for this application, ! * and to access the enclosing web page. * * @return the HostServices provider */ public final HostServices getHostServices() { synchronized (this) { --- 368,378 ---- private HostServices hostServices = null; /** * Gets the HostServices provider for this application. This provides * the ability to get the code base and document base for this application, ! * and to show a web page in a browser. * * @return the HostServices provider */ public final HostServices getHostServices() { synchronized (this) {
*** 384,395 **** } } /** * Retrieves the parameters for this Application, including any arguments ! * passed on the command line and any parameters specified in a JNLP file ! * for an applet or WebStart application. * * <p> * NOTE: this method should not be called from the Application constructor, * as it will return null. It may be called in the init() method or any * time after that. --- 383,393 ---- } } /** * Retrieves the parameters for this Application, including any arguments ! * passed on the command line. * * <p> * NOTE: this method should not be called from the Application constructor, * as it will return null. It may be called in the init() method or any * time after that.
*** 427,438 **** LauncherImpl.notifyPreloader(this, info); } /** * Encapsulates the set of parameters for an application. This includes ! * arguments passed on the command line, unnamed parameters specified ! * in a JNLP file, and &lt;name,value&gt; pairs specified in a JNLP file. * * <p> * Note that the application and the preloader both get the same set * of parameters for a given run of an application. * </p> --- 425,435 ---- LauncherImpl.notifyPreloader(this, info); } /** * Encapsulates the set of parameters for an application. This includes ! * arguments passed on the command line. * * <p> * Note that the application and the preloader both get the same set * of parameters for a given run of an application. * </p>
*** 448,459 **** /** * Retrieves a read-only list of the raw arguments. This list * may be empty, but is never null. In the case of a standalone * application, it is the ordered list of arguments specified on the ! * command line. In the case of an applet or WebStart application, ! * it includes unnamed parameters as well as named parameters. For * named parameters, each &lt;name,value&gt; pair is represented as * a single argument of the form: "--name=value". * * @return a read-only list of raw application arguments */ --- 445,456 ---- /** * Retrieves a read-only list of the raw arguments. This list * may be empty, but is never null. In the case of a standalone * application, it is the ordered list of arguments specified on the ! * command line. ! * For * named parameters, each &lt;name,value&gt; pair is represented as * a single argument of the form: "--name=value". * * @return a read-only list of raw application arguments */
*** 470,481 **** public abstract List<String> getUnnamed(); /** * Retrieves a read-only map of the named parameters. It may be * empty, but is never null. ! * Named parameters include those &lt;name,value&gt; pairs explicitly ! * specified in a JNLP file. It also includes any command line * arguments of the form: "--name=value". * * @return a read-only map of named parameters. */ public abstract Map<String, String> getNamed(); --- 467,477 ---- public abstract List<String> getUnnamed(); /** * Retrieves a read-only map of the named parameters. It may be * empty, but is never null. ! * Named parameters include any command line * arguments of the form: "--name=value". * * @return a read-only map of named parameters. */ public abstract Map<String, String> getNamed();
< prev index next >