Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a public getter method for the Dialog used by a Wizard #1542

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 11 additions & 18 deletions controlsfx/src/main/java/org/controlsfx/dialog/Wizard.java
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2014, 2018 ControlsFX
* Copyright (c) 2014, 2018, 2024 ControlsFX
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -258,6 +258,16 @@ public final ObjectProperty<ButtonType> resultProperty() {
public final ObservableMap<String, Object> getSettings() {
return settings;
}

/**
* Provides access to the {@link Dialog} object used to display the {@link Wizard}.
* @return The {@link Dialog} representing this {@link Wizard}. <br>
* This can be accessed in order to modify its properties if necessary,
* for example setting its window icon or its modality.
*/
public final Dialog<ButtonType> getDialog() {
return dialog;
}



Expand Down Expand Up @@ -726,21 +736,4 @@ public LinearFlow( WizardPane... pages ) {
}
}



/**************************************************************************
*
* Methods for the sake of unit tests
*
**************************************************************************/

/**
* @return The {@link Dialog} representing this {@link Wizard}. <br>
* This is actually for {@link Dialog} reading-purposes, e.g.
* unit testing the {@link DialogPane} content.
*/
Dialog<ButtonType> getDialog() {
return dialog;
}

}