Package javafx.application
Class Application.Parameters
java.lang.Object
javafx.application.Application.Parameters
- Direct Known Subclasses:
ParametersImpl
- Enclosing class:
Application
Encapsulates the set of parameters for an application. This includes
arguments passed on the command line, unnamed parameters specified
in a JNLP file, and <name,value> pairs specified in a JNLP file.
Note that the application and the preloader both get the same set of parameters for a given run of an application.
- Since:
- JavaFX 2.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Parameters
public Parameters()Constructs a newParameters
instance.
-
-
Method Details
-
getRaw
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 <name,value> pair is represented as a single argument of the form: "--name=value".- Returns:
- a read-only list of raw application arguments
-
getUnnamed
Retrieves a read-only list of the unnamed parameters. This list may be empty, but is never null. The named parameters, that is the parameters that are represented as <name,value> pairs, are filtered out.- Returns:
- a read-only list of unnamed parameters.
-
getNamed
Retrieves a read-only map of the named parameters. It may be empty, but is never null. Named parameters include those <name,value> pairs explicitly specified in a JNLP file. It also includes any command line arguments of the form: "--name=value".- Returns:
- a read-only map of named parameters.
-