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);
}
Aggregations