java.lang.Object
com.airhacks.afterburner.views.ViewLoader
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected Stringprotected final Class<?>protected static Executorprotected javafx.fxml.FXMLLoaderprotected static final ExecutorServiceprotected URL -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcontroller(Object root) Sets the given class as controller.protected StringgetConventionalName(boolean lowercase) protected StringgetConventionalName(boolean lowercase, String ending) Specifies the injection source used to construct the controller.load()Synchronously loads the FXML file and associated resources.voidSynchronously loads the FXML file and associated resources and invokes the created root node to the given consumer within the FX UI thread.voidAsynchronously loads the FXML file and associated resources using an internal thread pool and invokes the created root node to the given consumer within the FX UI thread.Sets the root of the object hierarchy.static ViewLoaderInitialized theViewLoaderto load the given view.static ViewLoaderInitialized theViewLoaderto load the given view.
-
Felddetails
-
fxmlLoader
protected javafx.fxml.FXMLLoader fxmlLoader -
bundleName
-
resource
-
FX_PLATFORM_EXECUTOR
-
PARENT_CREATION_POOL
-
clazz
-
-
Methodendetails
-
view
Initialized theViewLoaderto load the given view. The fxml (or other resources) are not yet loaded. -
view
Initialized theViewLoaderto load the given view. The given object is used as the controller. The fxml (or other resources) are not yet loaded. -
controller
Sets the given class as controller. We don't useFXMLLoader.setController(Object)since then thefx:controllerattribute is no longer allowed in the fxml file and we loose IDE support. -
inject
Specifies the injection source used to construct the controller. Values matching for the keys are going to be used for injection into the corresponding controller.- Parameter:
injectionContext- the function used as a injection source.
-
root
Sets the root of the object hierarchy. The value passed to this method is used as the value of the<fx:root>tag. This method must be called prior to loading the document when using<fx:root>.- Parameter:
root- the object used as the root
-
load
Synchronously loads the FXML file and associated resources.- Gibt zurück:
- a composite object giving access to the loaded root node and initialized controller
- Löst aus:
IllegalStateException- if an exception occurred during loading and parsing of the FXML file
-
load
Synchronously loads the FXML file and associated resources and invokes the created root node to the given consumer within the FX UI thread.- Parameter:
consumer- the callback that receives the loaded root node
-
loadAsync
Asynchronously loads the FXML file and associated resources using an internal thread pool and invokes the created root node to the given consumer within the FX UI thread.- Parameter:
consumer- the callback that receives the loaded root node
-
getConventionalName
- Parameter:
lowercase- indicates whether the simple class name should be converted to lowercase of left unchangedending- the suffix to append- Gibt zurück:
- the conventional name with stripped ending
-
getConventionalName
- Parameter:
lowercase- indicates whether the simple class name should be- Gibt zurück:
- the name of the view without the "View" prefix.
-
exceptionReporter
- Parameter:
t- exception to report- Gibt zurück:
- nothing
-