Package com.sun.javafx.application
Class ParametersImpl
java.lang.Object
javafx.application.Application.Parameters
com.sun.javafx.application.ParametersImpl
Implementation class for Application parameters. This is called by the
applet or application launcher to create the startup parameters for the
given class.
-
Constructor Summary
ConstructorDescriptionConstructs an empty Parameters object.ParametersImpl
(String[] args) Constructs an Parameters object from the specified array of unnamed parameters.ParametersImpl
(List<String> args) Constructs an Parameters object from the specified list of arguments.ParametersImpl
(Map params, String[] arguments) Constructs an Parameters object from the specified map of named parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetNamed()
Retrieves a read-only map of the named parameters.static Application.Parameters
getParameters
(Application app) getRaw()
Retrieves a read-only list of the raw arguments.Retrieves a read-only list of the unnamed parameters.static void
-
Constructor Details
-
ParametersImpl
public ParametersImpl()Constructs an empty Parameters object. -
ParametersImpl
Constructs an Parameters object from the specified list of arguments. The list may be null.- Parameters:
args
- list of command line arguments
-
ParametersImpl
Constructs an Parameters object from the specified array of unnamed parameters. The array may be null.- Parameters:
args
- array of command line arguments
-
ParametersImpl
Constructs an Parameters object from the specified map of named parameters.- Parameters:
params
- a map of parameters from which to initialize this object.
-
-
Method Details
-
getRaw
Description copied from class:Application.Parameters
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".- Specified by:
getRaw
in classApplication.Parameters
- Returns:
- a read-only list of raw application arguments
-
getNamed
Description copied from class:Application.Parameters
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".- Specified by:
getNamed
in classApplication.Parameters
- Returns:
- a read-only map of named parameters.
-
getUnnamed
Description copied from class:Application.Parameters
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.- Specified by:
getUnnamed
in classApplication.Parameters
- Returns:
- a read-only list of unnamed parameters.
-
getParameters
-
registerParameters
-