Class WizardDialog

java.lang.Object
javafx.scene.control.Dialog<Map<String,Object>>
com.dua3.utility.fx.controls.WizardDialog
All Implemented Interfaces:
EventTarget

public class WizardDialog extends Dialog<Map<String,Object>>
Represents a wizard dialog that guides the user through a sequence of pages. Each page can represent a step in a process, and the wizard dialog allows navigation between these steps.
  • Constructor Details

    • WizardDialog

      public WizardDialog()
      WizardDialog initializes a new dialog that handles the navigation and data collection of a sequence of wizard pages.
  • Method Details

    • setPages

      public void setPages(Map<String,WizardDialog.Page<?,?>> pages, String startPage)
      Sets the wizard pages and the initial page to start from.
      Parameters:
      pages - a map where keys are page identifiers and values are the corresponding Page objects
      startPage - the identifier of the page where the wizard dialog should start
    • isCancelable

      public boolean isCancelable()
      Check if dialog can be canceled.
      Returns:
      true if dialog is cancelable
    • isShowPreviousButton

      public boolean isShowPreviousButton()
      Check if a 'previous' ( or 'navigate-back') button should be displayed.
      Returns:
      true if dialog is cancelable
    • getCurrentPage

      public WizardDialog.Page<?,?> getCurrentPage()
      Retrieves the current wizard page.
      Returns:
      the current wizard page as a WizardDialog.Page object