Class ParametersImpl

java.lang.Object
javafx.application.Application.Parameters
com.sun.javafx.application.ParametersImpl

public class ParametersImpl extends Application.Parameters
Implementation class for Application parameters. This is called by the applet or application launcher to create the startup parameters for the given class.
  • Constructor Details

    • ParametersImpl

      public ParametersImpl()
      Constructs an empty Parameters object.
    • ParametersImpl

      public ParametersImpl(List<String> args)
      Constructs an Parameters object from the specified list of arguments. The list may be null.
      Parameters:
      args - list of command line arguments
    • ParametersImpl

      public ParametersImpl(String[] args)
      Constructs an Parameters object from the specified array of unnamed parameters. The array may be null.
      Parameters:
      args - array of command line arguments
    • ParametersImpl

      public ParametersImpl(Map params, String[] arguments)
      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

      public List<String> 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 class Application.Parameters
      Returns:
      a read-only list of raw application arguments
    • getNamed

      public Map<String,String> 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 class Application.Parameters
      Returns:
      a read-only map of named parameters.
    • getUnnamed

      public List<String> 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 class Application.Parameters
      Returns:
      a read-only list of unnamed parameters.
    • getParameters

      public static Application.Parameters getParameters(Application app)
    • registerParameters

      public static void registerParameters(Application app, Application.Parameters p)