public class FXMLLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARRAY_COMPONENT_DELIMITER
Delimiter for arrays as values.
|
static java.lang.String |
BI_DIRECTIONAL_BINDING_PREFIX
Prefix for bidirectional-binding expression resolution.
|
static java.lang.String |
BI_DIRECTIONAL_BINDING_SUFFIX
Suffix for bidirectional-binding expression resolution.
|
static java.lang.String |
BINDING_EXPRESSION_PREFIX
Prefix for binding expression resolution.
|
static java.lang.String |
BINDING_EXPRESSION_SUFFIX
Suffix for binding expression resolution.
|
private BuilderFactory |
builderFactory |
private java.lang.Class<?> |
callerClass |
static java.lang.String |
CHANGE_EVENT_HANDLER_SUFFIX
Suffix for property change/invalidation handlers.
|
private java.nio.charset.Charset |
charset |
private java.util.Map<java.lang.String,java.lang.Class<?>> |
classes |
private java.lang.ClassLoader |
classLoader |
private static java.lang.String |
COLLECTION_HANDLER_NAME |
private java.lang.Object |
controller |
static java.lang.String |
CONTROLLER_KEYWORD
A key for controller in namespace map.
|
static java.lang.String |
CONTROLLER_METHOD_PREFIX
Prefix for controller method resolution.
|
static java.lang.String |
CONTROLLER_SUFFIX
A suffix for controllers of included fxml files.
|
private FXMLLoader.ControllerAccessor |
controllerAccessor |
private <any> |
controllerFactory |
static java.lang.String |
COPY_SOURCE_ATTRIBUTE
The <fx:copy> 'source' attribute.
|
static java.lang.String |
COPY_TAG
The tag name of <fx:copy>.
|
private FXMLLoader.Element |
current |
private static BuilderFactory |
DEFAULT_BUILDER_FACTORY |
static java.lang.String |
DEFAULT_CHARSET_NAME
The character set used when character set is not explicitly specified.
|
private static java.lang.ClassLoader |
defaultClassLoader |
static java.lang.String |
DEFINE_TAG
The tag name of <fx:define>.
|
static java.lang.String |
ESCAPE_PREFIX
Escape prefix for escaping special characters inside attribute values.
|
static java.lang.String |
EVENT_HANDLER_PREFIX
The prefix of event handler attributes.
|
static java.lang.String |
EVENT_KEY
The name of the Event object in event handler scripts.
|
static java.lang.String |
EXPRESSION_PREFIX
Prefix for (variable) expression resolution.
|
private static java.util.regex.Pattern |
extraneousWhitespacePattern |
static java.lang.String |
FX_CONSTANT_ATTRIBUTE
The tag name of 'fx:constant'.
|
static java.lang.String |
FX_CONTROLLER_ATTRIBUTE
The name of fx:controller attribute of a root.
|
static java.lang.String |
FX_FACTORY_ATTRIBUTE
The name of 'fx:factory' attribute.
|
static java.lang.String |
FX_ID_ATTRIBUTE
The name of fx:id attribute.
|
static java.lang.String |
FX_NAMESPACE_PREFIX
Prefix of 'fx' namespace.
|
static java.lang.String |
FX_NAMESPACE_VERSION
Contains the current fx namepsace version.
|
static java.lang.String |
FX_VALUE_ATTRIBUTE
The name of fx:value attribute.
|
private static java.lang.RuntimePermission |
GET_CLASSLOADER_PERMISSION |
static java.lang.String |
IMPORT_PROCESSING_INSTRUCTION
The tag name of import processing instruction.
|
static java.lang.String |
INCLUDE_CHARSET_ATTRIBUTE
The <fx:include> 'charset' attribute.
|
static java.lang.String |
INCLUDE_RESOURCES_ATTRIBUTE
The <fx:include> 'resources' attribute.
|
static java.lang.String |
INCLUDE_SOURCE_ATTRIBUTE
The <fx:include> 'source' attribute.
|
static java.lang.String |
INCLUDE_TAG
The tag name of <fx:include>.
|
static java.lang.String |
INITIALIZE_METHOD_NAME
The name of initialize method.
|
static java.lang.String |
JAVAFX_VERSION
Contains the current javafx version.
|
static java.lang.String |
LANGUAGE_PROCESSING_INSTRUCTION
The tag name of language processing instruction.
|
private java.util.LinkedList<FXMLLoader> |
loaders |
private LoadListener |
loadListener |
private java.net.URL |
location |
static java.lang.String |
LOCATION_KEY
A key for location URL in namespace map.
|
private <any> |
namespace |
static java.lang.String |
NULL_KEYWORD
Value that represents 'null'.
|
private java.util.List<java.lang.String> |
packages |
private FXMLLoader |
parentLoader |
static java.lang.String |
REFERENCE_SOURCE_ATTRIBUTE
The <fx:reference> 'source' attribute.
|
static java.lang.String |
REFERENCE_TAG
The tag name of <fx:reference>.
|
static java.lang.String |
RELATIVE_PATH_PREFIX
Prefix for relative location resolution.
|
static java.lang.String |
RESOURCE_KEY_PREFIX
Prefix for resource resolution.
|
private java.util.ResourceBundle |
resources |
static java.lang.String |
RESOURCES_KEY
A key for ResourceBundle in namespace map.
|
private java.lang.Object |
root |
static java.lang.String |
ROOT_TAG
The tag name of <fx:root>.
|
static java.lang.String |
ROOT_TYPE_ATTRIBUTE
The <fx:root> 'type' attribute.
|
static java.lang.String |
SCRIPT_CHARSET_ATTRIBUTE
The <fx:script> 'charset' attribute.
|
static java.lang.String |
SCRIPT_SOURCE_ATTRIBUTE
The <fx:script> 'source' attribute.
|
static java.lang.String |
SCRIPT_TAG
The tag name of <fx:script>.
|
private javax.script.ScriptEngine |
scriptEngine |
private javax.script.ScriptEngineManager |
scriptEngineManager |
private boolean |
staticLoad |
private static StackWalker |
walker |
private javax.xml.stream.XMLStreamReader |
xmlStreamReader |
Constructor and Description |
---|
FXMLLoader()
Creates a new FXMLLoader instance.
|
FXMLLoader(java.nio.charset.Charset charset)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location,
java.util.ResourceBundle resources)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory,
java.nio.charset.Charset charset)
Creates a new FXMLLoader instance.
|
FXMLLoader(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory,
java.nio.charset.Charset charset,
java.util.LinkedList<FXMLLoader> loaders)
Creates a new FXMLLoader instance.
|
Modifier and Type | Method and Description |
---|---|
private static void |
checkClassLoaderPermission() |
private void |
clearImports() |
(package private) static int |
compareJFXVersions(java.lang.String rtVer,
java.lang.String nsVer)
Utility method for comparing two JavaFX version strings (such as 2.2.5, 8.0.0-ea)
|
private java.lang.String |
constructFXMLTrace() |
private LoadException |
constructLoadException(java.lang.String message) |
private LoadException |
constructLoadException(java.lang.String message,
java.lang.Throwable cause) |
private LoadException |
constructLoadException(java.lang.Throwable cause) |
private void |
createElement() |
boolean |
equals(java.lang.Object obj) |
BuilderFactory |
getBuilderFactory()
Returns the builder factory used by this loader.
|
java.nio.charset.Charset |
getCharset()
Returns the character set used by this loader.
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader used by this loader.
|
<T> T |
getController()
Returns the controller associated with the root object.
|
<any> |
getControllerFactory()
Returns the controller factory used by this loader.
|
static java.lang.ClassLoader |
getDefaultClassLoader()
Returns the default class loader.
|
private static java.lang.ClassLoader |
getDefaultClassLoader(java.lang.Class caller) |
(package private) int |
getLineNumber()
Returns the current line number.
|
LoadListener |
getLoadListener()
Returns this loader's load listener.
|
java.net.URL |
getLocation()
Returns the location used to resolve relative path attribute values.
|
<any> |
getNamespace()
Returns the namespace used by this loader.
|
(package private) ParseTraceElement[] |
getParseTrace()
Returns the current parse trace.
|
java.util.ResourceBundle |
getResources()
Returns the resources used to resolve resource key attribute values.
|
<T> T |
getRoot()
Returns the root of the object hierarchy.
|
private javax.script.ScriptEngineManager |
getScriptEngineManager() |
private java.lang.Class<?> |
getType(java.lang.String name) |
private void |
importClass(java.lang.String name) |
private void |
importPackage(java.lang.String name) |
private void |
injectFields(java.lang.String fieldName,
java.lang.Object value) |
private boolean |
isCyclic(FXMLLoader currentLoader,
FXMLLoader node) |
(package private) boolean |
isStaticLoad() |
<T> T |
load()
Loads an object hierarchy from a FXML document.
|
<T> T |
load(java.io.InputStream inputStream)
Loads an object hierarchy from a FXML document.
|
static <T> T |
load(java.net.URL location)
Loads an object hierarchy from a FXML document.
|
static <T> T |
load(java.net.URL location,
java.util.ResourceBundle resources)
Loads an object hierarchy from a FXML document.
|
static <T> T |
load(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory)
Loads an object hierarchy from a FXML document.
|
static <T> T |
load(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory)
Loads an object hierarchy from a FXML document.
|
static <T> T |
load(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory,
java.nio.charset.Charset charset)
Loads an object hierarchy from a FXML document.
|
private <T> T |
loadImpl(java.lang.Class<?> callerClass) |
private <T> T |
loadImpl(java.io.InputStream inputStream,
java.lang.Class<?> callerClass) |
private static <T> T |
loadImpl(java.net.URL location,
java.lang.Class<?> callerClass) |
private static <T> T |
loadImpl(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory,
java.nio.charset.Charset charset,
java.lang.Class<?> callerClass) |
private static <T> T |
loadImpl(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
<any> controllerFactory,
java.lang.Class<?> callerClass) |
private static <T> T |
loadImpl(java.net.URL location,
java.util.ResourceBundle resources,
BuilderFactory builderFactory,
java.lang.Class<?> callerClass) |
private static <T> T |
loadImpl(java.net.URL location,
java.util.ResourceBundle resources,
java.lang.Class<?> callerClass) |
static java.lang.Class<?> |
loadType(java.lang.String className)
Deprecated.
This method now delegates to
getDefaultClassLoader() . |
private java.lang.Class<?> |
loadType(java.lang.String name,
boolean cache) |
static java.lang.Class<?> |
loadType(java.lang.String packageName,
java.lang.String className)
Deprecated.
This method now delegates to
getDefaultClassLoader() . |
private java.lang.Class<?> |
loadTypeForPackage(java.lang.String packageName,
java.lang.String className) |
private static boolean |
needsClassLoaderPermissionCheck(java.lang.Class caller) |
private void |
processCharacters() |
private void |
processComment() |
private void |
processEndElement() |
private void |
processImport() |
private void |
processLanguage() |
private void |
processProcessingInstruction() |
private void |
processStartElement() |
void |
setBuilderFactory(BuilderFactory builderFactory)
Sets the builder factory used by this loader.
|
void |
setCharset(java.nio.charset.Charset charset)
Sets the character set used by this loader.
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the classloader used by this loader and clears any existing
imports.
|
void |
setController(java.lang.Object controller)
Sets the controller associated with the root object.
|
void |
setControllerFactory(<any> controllerFactory)
Sets the controller factory used by this loader.
|
static void |
setDefaultClassLoader(java.lang.ClassLoader defaultClassLoader)
Sets the default class loader.
|
void |
setLoadListener(LoadListener loadListener)
Sets this loader's load listener.
|
void |
setLocation(java.net.URL location)
Sets the location used to resolve relative path attribute values.
|
void |
setResources(java.util.ResourceBundle resources)
Sets the resources used to resolve resource key attribute values.
|
void |
setRoot(java.lang.Object root)
Sets the root of the object hierarchy.
|
(package private) void |
setStaticLoad(boolean staticLoad) |
private static FXMLLoader.SupportedType |
toSupportedType(java.lang.reflect.Method m) |
private static final java.lang.RuntimePermission GET_CLASSLOADER_PERMISSION
private static final StackWalker walker
private java.net.URL location
private java.util.ResourceBundle resources
private <any> namespace
private java.lang.Object root
private java.lang.Object controller
private BuilderFactory builderFactory
private <any> controllerFactory
private java.nio.charset.Charset charset
private final java.util.LinkedList<FXMLLoader> loaders
private java.lang.ClassLoader classLoader
private boolean staticLoad
private LoadListener loadListener
private FXMLLoader parentLoader
private javax.xml.stream.XMLStreamReader xmlStreamReader
private FXMLLoader.Element current
private javax.script.ScriptEngine scriptEngine
private java.util.List<java.lang.String> packages
private java.util.Map<java.lang.String,java.lang.Class<?>> classes
private javax.script.ScriptEngineManager scriptEngineManager
private static java.lang.ClassLoader defaultClassLoader
private static final java.util.regex.Pattern extraneousWhitespacePattern
private static BuilderFactory DEFAULT_BUILDER_FACTORY
public static final java.lang.String DEFAULT_CHARSET_NAME
public static final java.lang.String LANGUAGE_PROCESSING_INSTRUCTION
public static final java.lang.String IMPORT_PROCESSING_INSTRUCTION
public static final java.lang.String FX_NAMESPACE_PREFIX
public static final java.lang.String FX_CONTROLLER_ATTRIBUTE
public static final java.lang.String FX_ID_ATTRIBUTE
public static final java.lang.String FX_VALUE_ATTRIBUTE
public static final java.lang.String FX_CONSTANT_ATTRIBUTE
public static final java.lang.String FX_FACTORY_ATTRIBUTE
public static final java.lang.String INCLUDE_TAG
public static final java.lang.String INCLUDE_SOURCE_ATTRIBUTE
public static final java.lang.String INCLUDE_RESOURCES_ATTRIBUTE
public static final java.lang.String INCLUDE_CHARSET_ATTRIBUTE
public static final java.lang.String SCRIPT_TAG
public static final java.lang.String SCRIPT_SOURCE_ATTRIBUTE
public static final java.lang.String SCRIPT_CHARSET_ATTRIBUTE
public static final java.lang.String DEFINE_TAG
public static final java.lang.String REFERENCE_TAG
public static final java.lang.String REFERENCE_SOURCE_ATTRIBUTE
public static final java.lang.String ROOT_TAG
public static final java.lang.String ROOT_TYPE_ATTRIBUTE
public static final java.lang.String COPY_TAG
public static final java.lang.String COPY_SOURCE_ATTRIBUTE
public static final java.lang.String EVENT_HANDLER_PREFIX
public static final java.lang.String EVENT_KEY
public static final java.lang.String CHANGE_EVENT_HANDLER_SUFFIX
private static final java.lang.String COLLECTION_HANDLER_NAME
public static final java.lang.String NULL_KEYWORD
public static final java.lang.String ESCAPE_PREFIX
ESCAPE_PREFIX
, RELATIVE_PATH_PREFIX
,
RESOURCE_KEY_PREFIX
, EXPRESSION_PREFIX
,
BI_DIRECTIONAL_BINDING_PREFIX
public static final java.lang.String RELATIVE_PATH_PREFIX
public static final java.lang.String RESOURCE_KEY_PREFIX
public static final java.lang.String EXPRESSION_PREFIX
public static final java.lang.String BINDING_EXPRESSION_PREFIX
public static final java.lang.String BINDING_EXPRESSION_SUFFIX
public static final java.lang.String BI_DIRECTIONAL_BINDING_PREFIX
public static final java.lang.String BI_DIRECTIONAL_BINDING_SUFFIX
public static final java.lang.String ARRAY_COMPONENT_DELIMITER
public static final java.lang.String LOCATION_KEY
getNamespace()
,
Constant Field Valuespublic static final java.lang.String RESOURCES_KEY
getNamespace()
,
Constant Field Valuespublic static final java.lang.String CONTROLLER_METHOD_PREFIX
public static final java.lang.String CONTROLLER_KEYWORD
getNamespace()
,
Constant Field Valuespublic static final java.lang.String CONTROLLER_SUFFIX
getNamespace()
,
Constant Field Valuespublic static final java.lang.String INITIALIZE_METHOD_NAME
public static final java.lang.String JAVAFX_VERSION
public static final java.lang.String FX_NAMESPACE_VERSION
private java.lang.Class<?> callerClass
private final FXMLLoader.ControllerAccessor controllerAccessor
public FXMLLoader()
public FXMLLoader(java.net.URL location)
location
- the location used to resolve relative path attribute valuespublic FXMLLoader(java.net.URL location, java.util.ResourceBundle resources)
location
- the location used to resolve relative path attribute valuesresources
- the resources used to resolve resource key attribute valuespublic FXMLLoader(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory)
location
- the location used to resolve relative path attribute valuesresources
- resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used by this loaderpublic FXMLLoader(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory)
location
- the location used to resolve relative path attribute valuesresources
- resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used by this loadercontrollerFactory
- the controller factory used by this loaderpublic FXMLLoader(java.nio.charset.Charset charset)
charset
- the character set used by this loaderpublic FXMLLoader(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory, java.nio.charset.Charset charset)
location
- the location used to resolve relative path attribute valuesresources
- resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used by this loadercontrollerFactory
- the controller factory used by this loadercharset
- the character set used by this loaderpublic FXMLLoader(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory, java.nio.charset.Charset charset, java.util.LinkedList<FXMLLoader> loaders)
location
- the location used to resolve relative path attribute valuesresources
- resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used by this loadercontrollerFactory
- the controller factory used by this loadercharset
- the character set used by this loaderloaders
- list of loadersprivate void injectFields(java.lang.String fieldName, java.lang.Object value) throws LoadException
LoadException
public java.net.URL getLocation()
public void setLocation(java.net.URL location)
location
- the locationpublic java.util.ResourceBundle getResources()
public void setResources(java.util.ResourceBundle resources)
resources
- the resourcespublic <any> getNamespace()
public <T> T getRoot()
T
- the type of the root objectpublic void setRoot(java.lang.Object root)
<fx:root>
tag. This method
must be called prior to loading the document when using
<fx:root>
.root
- the root of the object hierarchypublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
private boolean isCyclic(FXMLLoader currentLoader, FXMLLoader node)
public <T> T getController()
T
- the type of the controllerpublic void setController(java.lang.Object controller)
fx:controller
attribute.
This method must be called prior to loading the document when using
controller event handlers when an fx:controller
attribute is not
specified in the document.controller
- the controller to associate with the root objectpublic BuilderFactory getBuilderFactory()
public void setBuilderFactory(BuilderFactory builderFactory)
builderFactory
- the builder factorypublic <any> getControllerFactory()
public void setControllerFactory(<any> controllerFactory)
controllerFactory
- the controller factorypublic java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
charset
- the character setpublic java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the classloaderboolean isStaticLoad()
void setStaticLoad(boolean staticLoad)
public LoadListener getLoadListener()
public final void setLoadListener(LoadListener loadListener)
loadListener
- the load listenerpublic <T> T load() throws java.io.IOException
setLocation(URL)
.T
- the type of the root objectjava.io.IOException
- if an error occurs during loadingpublic <T> T load(java.io.InputStream inputStream) throws java.io.IOException
T
- the type of the root objectinputStream
- an input stream containing the FXML data to loadjava.io.IOException
- if an error occurs during loadingprivate <T> T loadImpl(java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
private <T> T loadImpl(java.io.InputStream inputStream, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
private void clearImports()
private LoadException constructLoadException(java.lang.String message)
private LoadException constructLoadException(java.lang.Throwable cause)
private LoadException constructLoadException(java.lang.String message, java.lang.Throwable cause)
private java.lang.String constructFXMLTrace()
int getLineNumber()
ParseTraceElement[] getParseTrace()
private void processProcessingInstruction() throws LoadException
LoadException
private void processLanguage() throws LoadException
LoadException
private void processImport() throws LoadException
LoadException
private void processComment() throws LoadException
LoadException
private void processStartElement() throws java.io.IOException
java.io.IOException
private void createElement() throws java.io.IOException
java.io.IOException
private void processEndElement() throws java.io.IOException
java.io.IOException
private void processCharacters() throws java.io.IOException
java.io.IOException
private void importPackage(java.lang.String name) throws LoadException
LoadException
private void importClass(java.lang.String name) throws LoadException
LoadException
private java.lang.Class<?> getType(java.lang.String name) throws LoadException
LoadException
private java.lang.Class<?> loadType(java.lang.String name, boolean cache) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
private java.lang.Class<?> loadTypeForPackage(java.lang.String packageName, java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
private static FXMLLoader.SupportedType toSupportedType(java.lang.reflect.Method m)
private javax.script.ScriptEngineManager getScriptEngineManager()
@Deprecated public static java.lang.Class<?> loadType(java.lang.String packageName, java.lang.String className) throws java.lang.ClassNotFoundException
getDefaultClassLoader()
.packageName
- the package name of the class to loadclassName
- the name of the class to loadjava.lang.ClassNotFoundException
- if the specified class cannot be found@Deprecated public static java.lang.Class<?> loadType(java.lang.String className) throws java.lang.ClassNotFoundException
getDefaultClassLoader()
.className
- the name of the class to loadjava.lang.ClassNotFoundException
- if the specified class cannot be foundprivate static boolean needsClassLoaderPermissionCheck(java.lang.Class caller)
private static java.lang.ClassLoader getDefaultClassLoader(java.lang.Class caller)
public static java.lang.ClassLoader getDefaultClassLoader()
public static void setDefaultClassLoader(java.lang.ClassLoader defaultClassLoader)
defaultClassLoader
- The default class loader to use when loading classes.public static <T> T load(java.net.URL location) throws java.io.IOException
T
- the type of the root objectlocation
- the location used to resolve relative path attribute valuesjava.io.IOException
- if an error occurs during loadingprivate static <T> T loadImpl(java.net.URL location, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
public static <T> T load(java.net.URL location, java.util.ResourceBundle resources) throws java.io.IOException
T
- the type of the root objectlocation
- the location used to resolve relative path attribute valuesresources
- the resources used to resolve resource key attribute valuesjava.io.IOException
- if an error occurs during loadingprivate static <T> T loadImpl(java.net.URL location, java.util.ResourceBundle resources, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
public static <T> T load(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory) throws java.io.IOException
T
- the type of the root objectlocation
- the location used to resolve relative path attribute valuesresources
- the resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used to load the documentjava.io.IOException
- if an error occurs during loadingprivate static <T> T loadImpl(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
public static <T> T load(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory) throws java.io.IOException
T
- the type of the root objectlocation
- the location used to resolve relative path attribute valuesresources
- the resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used when loading the documentcontrollerFactory
- the controller factory used when loading the documentjava.io.IOException
- if an error occurs during loadingprivate static <T> T loadImpl(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
public static <T> T load(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory, java.nio.charset.Charset charset) throws java.io.IOException
T
- the type of the root objectlocation
- the location used to resolve relative path attribute valuesresources
- the resources used to resolve resource key attribute valuesbuilderFactory
- the builder factory used when loading the documentcontrollerFactory
- the controller factory used when loading the documentcharset
- the character set used when loading the documentjava.io.IOException
- if an error occurs during loadingprivate static <T> T loadImpl(java.net.URL location, java.util.ResourceBundle resources, BuilderFactory builderFactory, <any> controllerFactory, java.nio.charset.Charset charset, java.lang.Class<?> callerClass) throws java.io.IOException
java.io.IOException
static int compareJFXVersions(java.lang.String rtVer, java.lang.String nsVer)
rtVer
- String representation of JavaFX runtime version, including - or _ appendixnsVer
- String representation of JavaFX version to compare against runtime versionprivate static void checkClassLoaderPermission()