Search in sources :

Example 1 with ReservedView

use of bisq.desktop.main.funds.reserved.ReservedView 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);
}
Also used : DepositView(bisq.desktop.main.funds.deposit.DepositView) LockedView(bisq.desktop.main.funds.locked.LockedView) ReservedView(bisq.desktop.main.funds.reserved.ReservedView) WithdrawalView(bisq.desktop.main.funds.withdrawal.WithdrawalView) TransactionsView(bisq.desktop.main.funds.transactions.TransactionsView) ReservedView(bisq.desktop.main.funds.reserved.ReservedView) FxmlView(bisq.desktop.common.view.FxmlView) View(bisq.desktop.common.view.View) MainView(bisq.desktop.main.MainView) WithdrawalView(bisq.desktop.main.funds.withdrawal.WithdrawalView) DepositView(bisq.desktop.main.funds.deposit.DepositView) LockedView(bisq.desktop.main.funds.locked.LockedView) TransactionsView(bisq.desktop.main.funds.transactions.TransactionsView)

Aggregations

FxmlView (bisq.desktop.common.view.FxmlView)1 View (bisq.desktop.common.view.View)1 MainView (bisq.desktop.main.MainView)1 DepositView (bisq.desktop.main.funds.deposit.DepositView)1 LockedView (bisq.desktop.main.funds.locked.LockedView)1 ReservedView (bisq.desktop.main.funds.reserved.ReservedView)1 TransactionsView (bisq.desktop.main.funds.transactions.TransactionsView)1 WithdrawalView (bisq.desktop.main.funds.withdrawal.WithdrawalView)1