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 the WizardPage.
C - The type of the controller used by the WizardableView.
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
    C getController()  
    protected abstract java.util.Optional<java.util.ResourceBundle> getResourceBundle()
    Returns the resource bundle which contains the resources that the content of the WizardPage requires.
    protected abstract java.lang.String getWizardFxmlPath()
    Returns the path of the FXML file to load to be used by a wizard.
    WizardPage<T> getWizardPage()
    Creates a WizardPage.The nextFunction is set to null and isFinish is set to false.
    protected <P extends javafx.scene.Parent>
    P
    loadFXML​(java.lang.String fxmlPath, java.util.Optional<java.util.ResourceBundle> resourceBundle)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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
    • 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()
    • getResourceBundle

      protected abstract java.util.Optional<java.util.ResourceBundle> getResourceBundle()
      Returns the resource bundle which contains the resources that the content of the WizardPage requires.
      Returns:
      The resource bundle which contains the resources that the content of the WizardPage requires.
      See Also:
      getWizardPage()
    • getWizardPage

      public WizardPage<T> getWizardPage() throws java.io.IOException
      Creates a WizardPage.The nextFunction is set to null and isFinish is set to false.
      Returns:
      The newly created WizardPage. Returns null if the WizardPage could not be created.
      Throws:
      java.io.IOException - loadFXML(java.lang.String, java.util.Optional)
    • getController

      public C getController()