public class DMXLoaderFXML
extends javafx.fxml.FXMLLoader
Custom implementation of FXMLLoader
for usage within DEMUX Framework. This class is
integrated with resources system, and provides support for dynamic locale changes and
GUI updating.
In order to keep GUI strings in sync with locale changes, each component which references external string must also contain ID. This ID is then used to lookup a component when GUI needs to be updated. Note the code snippet bellow:
ARRAY_COMPONENT_DELIMITER, BI_DIRECTIONAL_BINDING_PREFIX, BI_DIRECTIONAL_BINDING_SUFFIX, BINDING_EXPRESSION_PREFIX, BINDING_EXPRESSION_SUFFIX, CHANGE_EVENT_HANDLER_SUFFIX, CONTROLLER_KEYWORD, CONTROLLER_METHOD_PREFIX, CONTROLLER_SUFFIX, COPY_SOURCE_ATTRIBUTE, COPY_TAG, DEFAULT_CHARSET_NAME, DEFINE_TAG, ESCAPE_PREFIX, EVENT_HANDLER_PREFIX, EVENT_KEY, EXPRESSION_PREFIX, FX_CONSTANT_ATTRIBUTE, FX_CONTROLLER_ATTRIBUTE, FX_FACTORY_ATTRIBUTE, FX_ID_ATTRIBUTE, FX_NAMESPACE_PREFIX, FX_NAMESPACE_VERSION, FX_VALUE_ATTRIBUTE, IMPORT_PROCESSING_INSTRUCTION, INCLUDE_CHARSET_ATTRIBUTE, INCLUDE_RESOURCES_ATTRIBUTE, INCLUDE_SOURCE_ATTRIBUTE, INCLUDE_TAG, INITIALIZE_METHOD_NAME, JAVAFX_VERSION, LANGUAGE_PROCESSING_INSTRUCTION, LOCATION_KEY, NULL_KEYWORD, REFERENCE_SOURCE_ATTRIBUTE, REFERENCE_TAG, RELATIVE_PATH_PREFIX, RESOURCE_KEY_PREFIX, RESOURCES_KEY, ROOT_TAG, ROOT_TYPE_ATTRIBUTE, SCRIPT_CHARSET_ATTRIBUTE, SCRIPT_SOURCE_ATTRIBUTE, SCRIPT_TAG
Constructor and Description |
---|
DMXLoaderFXML(URL fxmlFileUrl,
DMXResourceManager resourceManager)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
load()
Loads FXML object from URL specified in constructor.
|
Object |
load(InputStream in)
This implementation will ignore supplied
in argument and invoke load() method. |
void |
updateNodeHierarchy(javafx.scene.Node node)
Updates node hierarchy with current values from resource bundles.
|
equals, getBuilderFactory, getCharset, getClassLoader, getController, getControllerFactory, getDefaultClassLoader, getLocation, getNamespace, getResources, getRoot, impl_getLineNumber, impl_getLoadListener, impl_getParseTrace, impl_isStaticLoad, impl_setLoadListener, impl_setStaticLoad, load, load, load, load, load, loadType, loadType, setBuilderFactory, setCharset, setClassLoader, setController, setControllerFactory, setDefaultClassLoader, setLocation, setResources, setRoot
public DMXLoaderFXML(URL fxmlFileUrl, DMXResourceManager resourceManager)
fxmlFileUrl
- URL of FXML file to processresourceManager
- resource manager to usepublic Object load() throws IOException
load
in class javafx.fxml.FXMLLoader
IOException
- if an error occurspublic Object load(InputStream in) throws IOException
in
argument and invoke load()
method.
It will use URL specified in the constructor to load FXML document.load
in class javafx.fxml.FXMLLoader
in
- input stream (ignored)IOException
- if an error occurspublic void updateNodeHierarchy(javafx.scene.Node node)
node
- hierarchy root nodeCopyright © 2012-2014 Vektor Software. All Rights Reserved.