use of bisq.desktop.main.funds.locked.LockedView in project bisq-desktop by bisq-network.
the class FundsView 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 DepositView)
currentTab = depositTab;
else if (view instanceof WithdrawalView)
currentTab = withdrawalTab;
else if (view instanceof ReservedView)
currentTab = reservedTab;
else if (view instanceof LockedView)
currentTab = lockedTab;
else if (view instanceof TransactionsView)
currentTab = transactionsTab;
currentTab.setContent(view.getRoot());
root.getSelectionModel().select(currentTab);
}
Aggregations