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 1 commit
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
27 changes: 10 additions & 17 deletions controlsfx/src/main/java/org/controlsfx/dialog/Wizard.java
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;
}

}