Search in sources :

Example 1 with ArbitratorRegistrationView

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);
}
Also used : AccountSettingsView(bisq.desktop.main.account.settings.AccountSettingsView) ArbitratorRegistrationView(bisq.desktop.main.account.arbitratorregistration.ArbitratorRegistrationView) ActivatableView(bisq.desktop.common.view.ActivatableView) FiatAccountsView(bisq.desktop.main.account.content.fiataccounts.FiatAccountsView) FxmlView(bisq.desktop.common.view.FxmlView) View(bisq.desktop.common.view.View) MainView(bisq.desktop.main.MainView) ArbitratorRegistrationView(bisq.desktop.main.account.arbitratorregistration.ArbitratorRegistrationView) AccountSettingsView(bisq.desktop.main.account.settings.AccountSettingsView)

Aggregations

ActivatableView (bisq.desktop.common.view.ActivatableView)1 FxmlView (bisq.desktop.common.view.FxmlView)1 View (bisq.desktop.common.view.View)1 MainView (bisq.desktop.main.MainView)1 ArbitratorRegistrationView (bisq.desktop.main.account.arbitratorregistration.ArbitratorRegistrationView)1 FiatAccountsView (bisq.desktop.main.account.content.fiataccounts.FiatAccountsView)1 AccountSettingsView (bisq.desktop.main.account.settings.AccountSettingsView)1