Search in sources :

Example 1 with ProposalView

use of bisq.desktop.main.dao.proposal.ProposalView in project bisq-desktop by bisq-network.

the class DaoView method loadView.

private void loadView(Class<? extends View> viewClass) {
    View view = viewLoader.load(viewClass);
    if (view instanceof BsqWalletView) {
        selectedTab = bsqWalletTab;
        bsqWalletView = (BsqWalletView) view;
    } else if (view instanceof ProposalView) {
        selectedTab = compensationTab;
    } else if (view instanceof VotingView) {
        selectedTab = votingTab;
    }
    selectedTab.setContent(view.getRoot());
    root.getSelectionModel().select(selectedTab);
}
Also used : ProposalView(bisq.desktop.main.dao.proposal.ProposalView) VotingView(bisq.desktop.main.dao.voting.VotingView) BsqDashboardView(bisq.desktop.main.dao.wallet.dashboard.BsqDashboardView) ProposalView(bisq.desktop.main.dao.proposal.ProposalView) FxmlView(bisq.desktop.common.view.FxmlView) View(bisq.desktop.common.view.View) MainView(bisq.desktop.main.MainView) VotingView(bisq.desktop.main.dao.voting.VotingView) BsqWalletView(bisq.desktop.main.dao.wallet.BsqWalletView) BsqWalletView(bisq.desktop.main.dao.wallet.BsqWalletView)

Aggregations

FxmlView (bisq.desktop.common.view.FxmlView)1 View (bisq.desktop.common.view.View)1 MainView (bisq.desktop.main.MainView)1 ProposalView (bisq.desktop.main.dao.proposal.ProposalView)1 VotingView (bisq.desktop.main.dao.voting.VotingView)1 BsqWalletView (bisq.desktop.main.dao.wallet.BsqWalletView)1 BsqDashboardView (bisq.desktop.main.dao.wallet.dashboard.BsqDashboardView)1