public class FxmlHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FxmlHelper.InnerDocumentHandler<C>
Functional interface for to handle a loaded inner document.
|
static interface |
FxmlHelper.StageHandler<C>
Functional interface for to handle a loaded stage.
|
| Constructor and Description |
|---|
FxmlHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
loadFxml(PartyInvoiceApp app,
String view)
Load view from FXML file.
|
static <C,T> T |
loadFxml(PartyInvoiceApp app,
String view,
Class<C> controllerClass,
FxmlHelper.InnerDocumentHandler<C> handler)
Load view from FXML file with a handle for the controller.
|
static javafx.stage.Stage |
loadFxmlStage(PartyInvoiceApp app,
String view,
String titleKey)
Load Stage from FXML file.
|
static <C> javafx.stage.Stage |
loadFxmlStage(PartyInvoiceApp app,
String view,
String titleKey,
Class<C> controllerClass,
FxmlHelper.StageHandler<C> handler)
Load Stage from FXML file with a handler for the controller.
|
public static <T> T loadFxml(PartyInvoiceApp app, String view)
AbstractController, the app is
automatically assigned.T - parent element classapp - the appview - view location (relative to the view prefix
VIEW_PREFIX in the same package of this class)public static <C,T> T loadFxml(PartyInvoiceApp app, String view, Class<C> controllerClass, FxmlHelper.InnerDocumentHandler<C> handler)
AbstractController, the app is automatically
assigned.C - controller classT - parent element classapp - the appview - view location (relative to the view prefix
VIEW_PREFIX in the same package of this class)controllerClass - class the controller should havehandler - handler to be called when the FXML and the controller are
loadedpublic static javafx.stage.Stage loadFxmlStage(PartyInvoiceApp app, String view, String titleKey)
AbstractController, the app is
automatically assigned.app - the appview - view location (relative to the view prefix
VIEW_PREFIX in the same package of this class)titleKey - the message key to be used for the stagepublic static <C> javafx.stage.Stage loadFxmlStage(PartyInvoiceApp app, String view, String titleKey, Class<C> controllerClass, FxmlHelper.StageHandler<C> handler)
AbstractController, the app is automatically
assigned.C - controller classapp - the appview - view location (relative to the view prefix
VIEW_PREFIX in the same package of this class)titleKey - the message key to be used for the stagecontrollerClass - class the controller should havehandler - handler to be called when the FXML and the controller are
loadedCopyright © 2015 illucIT Software GmbH. All rights reserved.