Search in sources :

Example 1 with ReservedView

use of io.bitsquare.gui.main.funds.reserved.ReservedView 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);
}
Also used : DepositView(io.bitsquare.gui.main.funds.deposit.DepositView) LockedView(io.bitsquare.gui.main.funds.locked.LockedView) ReservedView(io.bitsquare.gui.main.funds.reserved.ReservedView) WithdrawalView(io.bitsquare.gui.main.funds.withdrawal.WithdrawalView) WithdrawalView(io.bitsquare.gui.main.funds.withdrawal.WithdrawalView) MainView(io.bitsquare.gui.main.MainView) LockedView(io.bitsquare.gui.main.funds.locked.LockedView) DepositView(io.bitsquare.gui.main.funds.deposit.DepositView) ReservedView(io.bitsquare.gui.main.funds.reserved.ReservedView) TransactionsView(io.bitsquare.gui.main.funds.transactions.TransactionsView) TransactionsView(io.bitsquare.gui.main.funds.transactions.TransactionsView)

Aggregations

MainView (io.bitsquare.gui.main.MainView)1 DepositView (io.bitsquare.gui.main.funds.deposit.DepositView)1 LockedView (io.bitsquare.gui.main.funds.locked.LockedView)1 ReservedView (io.bitsquare.gui.main.funds.reserved.ReservedView)1 TransactionsView (io.bitsquare.gui.main.funds.transactions.TransactionsView)1 WithdrawalView (io.bitsquare.gui.main.funds.withdrawal.WithdrawalView)1