use of bisq.desktop.main.portfolio.pendingtrades.PendingTradesView in project bisq-desktop by bisq-network.
the class PortfolioView method loadView.
private void loadView(Class<? extends View> viewClass) {
// we want to get activate/deactivate called, so we remove the old view on tab change
if (currentTab != null)
currentTab.setContent(null);
View view = viewLoader.load(viewClass);
if (view instanceof OpenOffersView)
currentTab = openOffersTab;
else if (view instanceof PendingTradesView)
currentTab = pendingTradesTab;
else if (view instanceof ClosedTradesView)
currentTab = closedTradesTab;
else if (view instanceof FailedTradesView)
currentTab = failedTradesTab;
currentTab.setContent(view.getRoot());
root.getSelectionModel().select(currentTab);
}
Aggregations