use of bisq.desktop.main.dao.voting.VotingView 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);
}
Aggregations