use of bisq.desktop.main.account.arbitratorregistration.ArbitratorRegistrationView in project bisq-desktop by bisq-network.
the class AccountView method loadView.
private void loadView(Class<? extends View> viewClass) {
View view = viewLoader.load(viewClass);
if (view instanceof AccountSettingsView) {
selectedTab = accountSettingsTab;
accountSettingsView = (AccountSettingsView) view;
selectedTab.setText(Res.get("account.tab.account"));
if (arbitratorRegistrationTab != null) {
arbitratorRegistrationTab.setDisable(false);
if (arbitratorRegistrationView != null)
arbitratorRegistrationView.onTabSelection(false);
}
} else if (view instanceof ArbitratorRegistrationView) {
if (arbitratorRegistrationTab != null) {
selectedTab = arbitratorRegistrationTab;
arbitratorRegistrationView = (ArbitratorRegistrationView) view;
arbitratorRegistrationView.onTabSelection(true);
}
} else {
throw new IllegalArgumentException("View not supported: " + view);
}
selectedTab.setContent(view.getRoot());
root.getSelectionModel().select(selectedTab);
}
Aggregations