java.lang.Object
javafx.application.Application.Parameters
- Enclosing class:
Application
Encapsulates the set of parameters for an application. This includes
arguments passed on the command line.
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. 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 any command line arguments of the form: "--name=value".- Returns:
- a read-only map of named parameters.
-