Package bayern.steinbrecher.wizard
Class WizardableView<T extends java.util.Optional<?>,C extends WizardableController<T>>
java.lang.Object
bayern.steinbrecher.wizard.WizardableView<T,C>
- Type Parameters:
T- The type of the result of theWizardPage.C- The type of the controller used by theWizardableView.
- Direct Known Subclasses:
Selection
public abstract class WizardableView<T extends java.util.Optional<?>,C extends WizardableController<T>>
extends java.lang.Object
Represents a class which can be in a
Wizard.- Since:
- 1.2
- Author:
- Stefan Huber
-
Constructor Summary
Constructors Constructor Description WizardableView() -
Method Summary
Modifier and Type Method Description protected abstract voidafterControllerInitialized()This method is executed after the FXML is loaded and right after the corresponding controller is set.CgetController()protected abstract java.lang.StringgetWizardFxmlPath()Returns the path of the FXML file to load to be used by a wizard.WizardPage<T>getWizardPage()protected <P extends javafx.scene.Parent>
PloadFXML(java.lang.String fxmlPath, java.util.Optional<java.util.ResourceBundle> resourceBundle)
-
Constructor Details
-
WizardableView
public WizardableView()
-
-
Method Details
-
loadFXML
protected final <P extends javafx.scene.Parent> P loadFXML(java.lang.String fxmlPath, java.util.Optional<java.util.ResourceBundle> resourceBundle) throws java.io.IOException- Throws:
java.io.IOException
-
afterControllerInitialized
protected abstract void afterControllerInitialized()This method is executed after the FXML is loaded and right after the corresponding controller is set. This function represents an equivalent to a FXML controllers initialize method.- Since:
- 1.8
-
getWizardFxmlPath
protected abstract java.lang.String getWizardFxmlPath()Returns the path of the FXML file to load to be used by a wizard.- Returns:
- The path of the FXML file to load to be used by a wizard.
- See Also:
getWizardPage()
-
getWizardPage
- Returns:
- The newly created
WizardPage. Returnsnullif theWizardPagecould not be created. - Throws:
java.io.IOException-loadFXML(java.lang.String, java.util.Optional)
-
getController
-