public final class FXMLUtils extends Object implements FXMLMessages
| Modifier and Type | Field and Description |
|---|---|
private static JRLogger |
LOGGER
The class logger.
|
BAD_FXML_CONTROLLER_ANCESTOR, DEFAULT_CTRLR_CREATION_ERROR, FXML_ERROR_NODE_LABEL, FXML_NODE_DOESNT_EXIST, INIT_FXML_NODE, MISSING_RESOURCE_BUNDLE| Modifier | Constructor and Description |
|---|---|
private |
FXMLUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static <M extends Model> |
convertFxmlUrl(M model,
String fxmlPath)
Convert The url of fxml files to allow local and path loading.
|
static <M extends Model> |
loadFXML(M model,
String fxmlPath)
Load a FXML component without resource bundle.
|
static <M extends Model> |
loadFXML(M model,
String fxmlPath,
String bundlePath)
Load a FXML component.
|
private static final JRLogger LOGGER
public static <M extends Model> FXMLComponent loadFXML(M model, String fxmlPath)
M - the model type that will manage this fxml nodemodel - the model that will manage the fxml nodefxmlPath - the fxml string pathpublic static <M extends Model> FXMLComponent loadFXML(M model, String fxmlPath, String bundlePath)
M - the model type that will manage this fxml nodemodel - the model that will manage the fxml nodefxmlPath - the fxml string pathbundlePath - the bundle string pathprivate static <M extends Model> URL convertFxmlUrl(M model, String fxmlPath)
M - the model type that will manage this fxml nodemodel - the model class that will be used for relative loadingfxmlPath - the path of the fxml file (relative or absolute)Copyright © 2011–2014 JRebirth OSS. All rights reserved.