Search in sources :

Example 1 with MenuItem

use of bisq.desktop.components.MenuItem in project bisq-desktop by bisq-network.

the class ProposalView method initialize.

@Override
public void initialize() {
    listener = viewPath -> {
        if (viewPath.size() != 4 || viewPath.indexOf(ProposalView.class) != 2)
            return;
        selectedViewClass = viewPath.tip();
        loadView(selectedViewClass);
    };
    ToggleGroup toggleGroup = new ToggleGroup();
    dashboard = new MenuItem(navigation, toggleGroup, Res.get("shared.dashboard"), ProposalDashboardView.class, AwesomeIcon.DASHBOARD);
    make = new MenuItem(navigation, toggleGroup, Res.get("dao.proposal.menuItem.make"), MakeProposalView.class, AwesomeIcon.EDIT);
    active = new MenuItem(navigation, toggleGroup, Res.get("dao.proposal.menuItem.active"), ActiveProposalsView.class, AwesomeIcon.LIST_UL);
    myVotes = new MenuItem(navigation, toggleGroup, Res.get("dao.proposal.menuItem.myVotes"), MyVotesView.class, AwesomeIcon.THUMBS_UP);
    votes = new MenuItem(navigation, toggleGroup, Res.get("dao.proposal.menuItem.votes"), VotesView.class, AwesomeIcon.THUMBS_UP_ALT);
    closed = new MenuItem(navigation, toggleGroup, Res.get("dao.proposal.menuItem.closed"), ClosedProposalsView.class, AwesomeIcon.LIST_ALT);
    leftVBox.getChildren().addAll(dashboard, make, active, myVotes, votes, closed);
}
Also used : ProposalDashboardView(bisq.desktop.main.dao.proposal.dashboard.ProposalDashboardView) ToggleGroup(javafx.scene.control.ToggleGroup) VotesView(bisq.desktop.main.dao.proposal.votes.VotesView) MyVotesView(bisq.desktop.main.dao.proposal.myvotes.MyVotesView) MenuItem(bisq.desktop.components.MenuItem) MyVotesView(bisq.desktop.main.dao.proposal.myvotes.MyVotesView) MakeProposalView(bisq.desktop.main.dao.proposal.make.MakeProposalView) ActiveProposalsView(bisq.desktop.main.dao.proposal.active.ActiveProposalsView) ClosedProposalsView(bisq.desktop.main.dao.proposal.closed.ClosedProposalsView)

Aggregations

MenuItem (bisq.desktop.components.MenuItem)1 ActiveProposalsView (bisq.desktop.main.dao.proposal.active.ActiveProposalsView)1 ClosedProposalsView (bisq.desktop.main.dao.proposal.closed.ClosedProposalsView)1 ProposalDashboardView (bisq.desktop.main.dao.proposal.dashboard.ProposalDashboardView)1 MakeProposalView (bisq.desktop.main.dao.proposal.make.MakeProposalView)1 MyVotesView (bisq.desktop.main.dao.proposal.myvotes.MyVotesView)1 VotesView (bisq.desktop.main.dao.proposal.votes.VotesView)1 ToggleGroup (javafx.scene.control.ToggleGroup)1