| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| protected String | |
| protected final Class | |
| private static final String | |
| private static final String | |
| protected static Executor | |
| protected FXMLLoader | |
| private static final Logger | |
| protected static final ExecutorService | |
| protected URL |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public ViewLoader | |
| public Void | |
| private String | Returns: the conventional name of the bss file expected..bss files are binary encoded css files which javafx produces. |
| private String | |
| protected String | Returns: the conventional name with stripped endingindicates whether the simple class name should be
converted to lowercase of left unchanged lowercase, String the suffix to append ending)
|
| protected String | Returns: the name of the view without the "View" prefix.indicates whether the simple class name should be lowercase)
|
| private static ExecutorService | |
| private String | Returns: the name of the fxml file derived from the FXML view. e.g. The name for the AirhacksView is going to be airhacks.fxml.
|
| private String | |
| private String | |
| public ViewLoader | |
| public ViewLoaderResult | Returns: a composite object giving access to the loaded root node and initialized controllerSynchronously loads the FXML file and associated resources. |
| public void | |
| public void | |
| public ViewLoader | |
| private static String | |
| private void | |
| public static ViewLoader | |
| public static ViewLoader |
| BSS_FILE_ENDING | back to summary |
|---|---|
| private static final String BSS_FILE_ENDING | |
| bundleName | back to summary |
|---|---|
| protected String bundleName | |
| clazz | back to summary |
|---|---|
| protected final Class<?> clazz | |
| CSS_FILE_ENDING | back to summary |
|---|---|
| private static final String CSS_FILE_ENDING | |
| DEFAULT_ENDING | back to summary |
|---|---|
| private static final String DEFAULT_ENDING | |
| FX_PLATFORM_EXECUTOR | back to summary |
|---|---|
| protected static Executor FX_PLATFORM_EXECUTOR | |
| fxmlLoader | back to summary |
|---|---|
| protected FXMLLoader fxmlLoader | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PARENT_CREATION_POOL | back to summary |
|---|---|
| protected static final ExecutorService PARENT_CREATION_POOL | |
| resource | back to summary |
|---|---|
| protected URL resource | |
| ViewLoader | back to summary |
|---|---|
| private ViewLoader(Class<?> clazz) | |
| addCSSIfAvailable | back to summary |
|---|---|
| private void addCSSIfAvailable(Parent parent) | |
| controller | back to summary |
|---|---|
| public ViewLoader controller(Object root) Sets the given class as controller.
We don't use | |
| exceptionReporter | back to summary |
|---|---|
| public Void exceptionReporter(Throwable t) | |
| getBinaryStyleSheetName | back to summary |
|---|---|
| private String getBinaryStyleSheetName() .bss files are binary encoded css files which javafx produces.
| |
| getBundleName | back to summary |
|---|---|
| private String getBundleName() | |
| getConventionalName | back to summary |
|---|---|
| protected String getConventionalName(boolean lowercase, String ending) | |
| getConventionalName | back to summary |
|---|---|
protected String getConventionalName(boolean lowercase)
| |
| getExecutorService | back to summary |
|---|---|
| private static ExecutorService getExecutorService() | |
| getFXMLName | back to summary |
|---|---|
private String getFXMLName()
| |
| getResourceCamelOrLowerCase | back to summary |
|---|---|
| private String getResourceCamelOrLowerCase(boolean mandatory, String ending) | |
| getStyleSheetName | back to summary |
|---|---|
| private String getStyleSheetName() | |
| inject | back to summary |
|---|---|
| public ViewLoader inject(Function<String, Object> injectionContext) 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. | |
| load | back to summary |
|---|---|
| public ViewLoaderResult load() throws IllegalStateException Synchronously loads the FXML file and associated resources.
| |
| load | back to summary |
|---|---|
| public void load(Consumer<Parent> consumer) Synchronously loads the FXML file and associated resources and invokes the created root node to the given consumer within the FX UI thread. | |
| loadAsync | back to summary |
|---|---|
| public void loadAsync(Consumer<Parent> consumer) 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. | |
| root | back to summary |
|---|---|
| public ViewLoader root(Object root) Sets the root of the object hierarchy. The value passed to this method
is used as the value of the
| |
| stripEnding | back to summary |
|---|---|
| private static String stripEnding(String clazz) | |
| updateControllerFactory | back to summary |
|---|---|
| private void updateControllerFactory(Function<String, Object> injectionContext) | |
| view | back to summary |
|---|---|
| public static ViewLoader view(Class<? extends Object> clazz) Initialized the | |
| view | back to summary |
|---|---|
| public static ViewLoader view(Object root) Initialized the | |