Search in sources :

Example 1 with VoteView

use of bisq.desktop.main.dao.voting.vote.VoteView in project bisq-desktop by bisq-network.

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 VotingDashboardView)
        dashboard.setSelected(true);
    else if (view instanceof VoteView)
        vote.setSelected(true);
    else if (view instanceof VotingHistoryView)
        history.setSelected(true);
}
Also used : VotingDashboardView(bisq.desktop.main.dao.voting.dashboard.VotingDashboardView) VotingDashboardView(bisq.desktop.main.dao.voting.dashboard.VotingDashboardView) VotingHistoryView(bisq.desktop.main.dao.voting.history.VotingHistoryView) FxmlView(bisq.desktop.common.view.FxmlView) VoteView(bisq.desktop.main.dao.voting.vote.VoteView) DaoView(bisq.desktop.main.dao.DaoView) View(bisq.desktop.common.view.View) MainView(bisq.desktop.main.MainView) VoteView(bisq.desktop.main.dao.voting.vote.VoteView) VotingHistoryView(bisq.desktop.main.dao.voting.history.VotingHistoryView)

Aggregations

FxmlView (bisq.desktop.common.view.FxmlView)1 View (bisq.desktop.common.view.View)1 MainView (bisq.desktop.main.MainView)1 DaoView (bisq.desktop.main.dao.DaoView)1 VotingDashboardView (bisq.desktop.main.dao.voting.dashboard.VotingDashboardView)1 VotingHistoryView (bisq.desktop.main.dao.voting.history.VotingHistoryView)1 VoteView (bisq.desktop.main.dao.voting.vote.VoteView)1