mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-18 14:55:53 -04:00
Rename Wizard.Step#useSettingsContext => hideWizardNavigation
This commit is contained in:
parent
d4eb252973
commit
693e95391a
@ -21,6 +21,6 @@ public interface Wizard {
|
||||
void nextStep(View current);
|
||||
|
||||
public interface Step extends ChildOf<Wizard> {
|
||||
void useSettingsContext(boolean useSettingsContext);
|
||||
void hideWizardNavigation();
|
||||
}
|
||||
}
|
||||
|
@ -70,9 +70,8 @@ public class ChangePasswordView extends InitializableView<ChangePasswordViewMode
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
if (useSettingsContext)
|
||||
buttonsHBox.getChildren().remove(skipButton);
|
||||
public void hideWizardNavigation() {
|
||||
buttonsHBox.getChildren().remove(skipButton);
|
||||
}
|
||||
|
||||
|
||||
|
@ -119,9 +119,8 @@ public class FiatAccountView extends ActivatableViewAndModel<FiatAccountViewMode
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
if (useSettingsContext)
|
||||
buttonsHBox.getChildren().remove(completedButton);
|
||||
public void hideWizardNavigation() {
|
||||
buttonsHBox.getChildren().remove(completedButton);
|
||||
}
|
||||
|
||||
|
||||
|
@ -150,7 +150,7 @@ public class IrcAccountView extends ActivatableViewAndModel<IrcAccountViewModel>
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
public void hideWizardNavigation() {
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,9 +75,8 @@ public class PasswordView extends InitializableView<PasswordViewModel> implement
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
if (useSettingsContext)
|
||||
buttonsHBox.getChildren().remove(skipButton);
|
||||
public void hideWizardNavigation() {
|
||||
buttonsHBox.getChildren().remove(skipButton);
|
||||
}
|
||||
|
||||
|
||||
|
@ -147,7 +147,7 @@ public class RegistrationView extends InitializableView<RegistrationViewModel> i
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
public void hideWizardNavigation() {
|
||||
}
|
||||
|
||||
|
||||
|
@ -103,9 +103,8 @@ public class RestrictionsView extends ActivatableViewAndModel<RestrictionsViewMo
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
if (useSettingsContext)
|
||||
((GridPane) root).getChildren().remove(completedButton);
|
||||
public void hideWizardNavigation() {
|
||||
((GridPane) root).getChildren().remove(completedButton);
|
||||
}
|
||||
|
||||
|
||||
|
@ -66,9 +66,8 @@ public class SeedWordsView extends InitializableView<SeedWordsViewModel> impleme
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useSettingsContext(boolean useSettingsContext) {
|
||||
if (useSettingsContext)
|
||||
((GridPane) root).getChildren().remove(completedButton);
|
||||
public void hideWizardNavigation() {
|
||||
((GridPane) root).getChildren().remove(completedButton);
|
||||
}
|
||||
|
||||
|
||||
|
@ -21,6 +21,7 @@ import io.bitsquare.gui.ActivatableViewAndModel;
|
||||
import io.bitsquare.gui.Navigation;
|
||||
import io.bitsquare.gui.View;
|
||||
import io.bitsquare.gui.ViewLoader;
|
||||
import io.bitsquare.gui.Wizard;
|
||||
import io.bitsquare.gui.util.Colors;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@ -131,6 +132,8 @@ public class AccountSettingsView extends ActivatableViewAndModel {
|
||||
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl());
|
||||
content.getChildren().setAll(loaded.view);
|
||||
View child = (View) loaded.controller;
|
||||
if (child instanceof Wizard.Step)
|
||||
((Wizard.Step) child).hideWizardNavigation();
|
||||
return child;
|
||||
}
|
||||
|
||||
|
@ -184,10 +184,8 @@ public class AccountSetupView extends ActivatableView implements Wizard {
|
||||
ViewLoader.Item loaded = viewLoader.load(navigationItem.getFxmlUrl());
|
||||
content.getChildren().setAll(loaded.view);
|
||||
View child = (View) loaded.controller;
|
||||
if (child instanceof Wizard.Step) {
|
||||
if (child instanceof Wizard.Step)
|
||||
((Step) child).setParent(this);
|
||||
((Step) child).useSettingsContext(false);
|
||||
}
|
||||
return child;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user