use of io.bitsquare.gui.main.funds.transactions.TransactionsView in project bitsquare by bitsquare.
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