use of io.bitsquare.gui.main.account.content.password.PasswordView in project bitsquare by bitsquare.
the class MenuItem method loadView.
private void loadView(Class<? extends View> viewClass) {
View view = viewLoader.load(viewClass);
content.getChildren().setAll(view.getRoot());
if (view instanceof FiatAccountsView)
paymentAccount.setSelected(true);
else if (view instanceof AltCoinAccountsView)
altCoinsAccountView.setSelected(true);
else if (view instanceof ArbitratorSelectionView)
arbitratorSelection.setSelected(true);
else if (view instanceof PasswordView)
password.setSelected(true);
else if (view instanceof SeedWordsView)
seedWords.setSelected(true);
else if (view instanceof BackupView)
backup.setSelected(true);
}
Aggregations