Example usage for com.vaadin.server FontAwesome BUILDING

List of usage examples for com.vaadin.server FontAwesome BUILDING

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome BUILDING.

Prototype

FontAwesome BUILDING

To view the source code for com.vaadin.server FontAwesome BUILDING.

Click Source Link

Usage

From source file:com.esofthead.mycollab.mobile.module.project.ui.ProjectMobileMenuPageView.java

License:Open Source License

@Override
protected void buildNavigateMenu() {
    getMenu().setWidth("80%");
    addSection("Views:");

    Button prjButton = new Button("Projects", new Button.ClickListener() {
        @Override/* w  ww  .jav a2s  .  co m*/
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ProjectEvent.GotoProjectList(this, null));
        }
    });
    prjButton.setIcon(FontAwesome.BUILDING);
    addMenuItem(prjButton);

    // Buttons with styling (slightly smaller with left-aligned text)
    Button activityBtn = new Button("Activities", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance()
                    .post(new ProjectEvent.MyProjectActivities(this, CurrentProjectVariables.getProjectId()));
        }
    });
    activityBtn.setIcon(FontAwesome.INBOX);
    addMenuItem(activityBtn);

    // add more buttons for a more realistic look.
    Button messageBtn = new Button("Messages", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new MessageEvent.GotoList(this, null));
        }
    });
    messageBtn.setIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MESSAGE));
    addMenuItem(messageBtn);

    Button phaseBtn = new Button("Phases", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new MilestoneEvent.GotoList(this, null));
        }
    });
    phaseBtn.setIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MILESTONE));
    addMenuItem(phaseBtn);

    Button taskBtn = new Button("Tasks", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new TaskEvent.GotoList(this, null));
        }
    });
    taskBtn.setIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.TASK));
    addMenuItem(taskBtn);

    Button bugBtn = new Button("Bugs", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new BugEvent.GotoList(this, null));
        }
    });
    bugBtn.setIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.BUG));
    addMenuItem(bugBtn);

    Button userBtn = new Button("Users", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ProjectMemberEvent.GotoList(this, null));
        }
    });
    userBtn.setIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MEMBER));
    addMenuItem(userBtn);

    addSection("Settings:");

    Button logoutBtn = new Button("Logout", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ShellEvent.LogOut(this));
        }
    });
    logoutBtn.setIcon(FontAwesome.SIGN_OUT);
    addMenuItem(logoutBtn);
}

From source file:com.esofthead.mycollab.mobile.module.project.view.UserProjectListViewImpl.java

License:Open Source License

@Override
protected void buildNavigateMenu() {
    addSection("Views:");

    // Buttons with styling (slightly smaller with left-aligned text)
    Button activityBtn = new Button("Activities", new Button.ClickListener() {
        @Override//  w  ww . j a  v a  2  s.com
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ProjectEvent.AllActivities(this));
        }
    });
    activityBtn.setIcon(FontAwesome.INBOX);
    addMenuItem(activityBtn);

    Button prjBtn = new Button("Projects", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ProjectEvent.GotoProjectList(this, null));
        }
    });
    prjBtn.setIcon(FontAwesome.BUILDING);
    addMenuItem(prjBtn);

    addSection("Settings:");

    Button logoutBtn = new Button("Logout", new Button.ClickListener() {
        @Override
        public void buttonClick(Button.ClickEvent clickEvent) {
            closeMenu();
            EventBusFactory.getInstance().post(new ShellEvent.LogOut(this));
        }
    });
    logoutBtn.setIcon(FontAwesome.SIGN_OUT);
    addMenuItem(logoutBtn);
}

From source file:com.mycollab.mobile.module.project.ui.ProjectMobileMenuPageView.java

License:Open Source License

@Override
protected void buildNavigateMenu() {
    getMenu().setWidth("80%");
    addSection("Views:");

    MButton prjButton = new MButton(UserUIContext.getMessage(ProjectI18nEnum.LIST), clickEvent -> {
        closeMenu();/*w  ww.j av a 2s . c  o m*/
        EventBusFactory.getInstance().post(new ProjectEvent.GotoProjectList(this, null));
    }).withIcon(FontAwesome.BUILDING);
    addMenuItem(prjButton);

    // Buttons with styling (slightly smaller with left-aligned text)
    MButton activityBtn = new MButton(UserUIContext.getMessage(ProjectCommonI18nEnum.M_VIEW_PROJECT_ACTIVITIES),
            clickEvent -> {
                closeMenu();
                EventBusFactory.getInstance().post(
                        new ProjectEvent.MyProjectActivities(this, CurrentProjectVariables.getProjectId()));
            }).withIcon(FontAwesome.INBOX);
    addMenuItem(activityBtn);

    // add more buttons for a more realistic look.
    MButton messageBtn = new MButton(UserUIContext.getMessage(MessageI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new MessageEvent.GotoList(this, null));
    }).withIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MESSAGE));
    addMenuItem(messageBtn);

    MButton phaseBtn = new MButton(UserUIContext.getMessage(MilestoneI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new MilestoneEvent.GotoList(this, null));
    }).withIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MILESTONE));
    addMenuItem(phaseBtn);

    MButton ticketBtn = new MButton(UserUIContext.getMessage(TicketI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new TicketEvent.GotoDashboard(this, null));
    }).withIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.TICKET));
    addMenuItem(ticketBtn);

    MButton userBtn = new MButton(UserUIContext.getMessage(ProjectMemberI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ProjectMemberEvent.GotoList(this, null));
    }).withIcon(ProjectAssetsManager.getAsset(ProjectTypeConstants.MEMBER));
    addMenuItem(userBtn);

    addSection(UserUIContext.getMessage(ProjectCommonI18nEnum.VIEW_SETTINGS));

    MButton logoutBtn = new MButton(UserUIContext.getMessage(GenericI18Enum.BUTTON_SIGNOUT), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ShellEvent.LogOut(this));
    }).withIcon(FontAwesome.SIGN_OUT);
    addMenuItem(logoutBtn);
}

From source file:com.mycollab.mobile.module.project.view.AllActivityViewImpl.java

License:Open Source License

@Override
protected void buildNavigateMenu() {
    addSection("Views:");

    // Buttons with styling (slightly smaller with left-aligned text)
    Button activityBtn = new Button("Activities", clickEvent -> {
        closeMenu();/*  w w  w .  j  a  v a 2 s. com*/
        EventBusFactory.getInstance().post(new ProjectEvent.AllActivities(this));
    });
    activityBtn.setIcon(FontAwesome.INBOX);
    addMenuItem(activityBtn);

    Button prjBtn = new Button(UserUIContext.getMessage(ProjectI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ProjectEvent.GotoProjectList(this, null));
    });
    prjBtn.setIcon(FontAwesome.BUILDING);
    addMenuItem(prjBtn);

    addSection("Settings:");

    Button logoutBtn = new Button(UserUIContext.getMessage(GenericI18Enum.BUTTON_SIGNOUT), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ShellEvent.LogOut(this));
    });
    logoutBtn.setIcon(FontAwesome.SIGN_OUT);
    addMenuItem(logoutBtn);
}

From source file:com.mycollab.mobile.module.project.view.UserProjectListViewImpl.java

License:Open Source License

@Override
protected void buildNavigateMenu() {
    addSection("Views:");

    // Buttons with styling (slightly smaller with left-aligned text)
    MButton activityBtn = new MButton(UserUIContext.getMessage(ProjectCommonI18nEnum.M_VIEW_PROJECT_ACTIVITIES),
            clickEvent -> {//from   w w  w  .ja  v  a 2s  .co m
                closeMenu();
                EventBusFactory.getInstance().post(new ProjectEvent.AllActivities(this));
            }).withIcon(FontAwesome.INBOX);
    addMenuItem(activityBtn);

    MButton prjBtn = new MButton(UserUIContext.getMessage(ProjectI18nEnum.LIST), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ProjectEvent.GotoProjectList(this, null));
    }).withIcon(FontAwesome.BUILDING);
    addMenuItem(prjBtn);

    addSection(UserUIContext.getMessage(ProjectCommonI18nEnum.VIEW_SETTINGS));

    MButton logoutBtn = new MButton(UserUIContext.getMessage(GenericI18Enum.BUTTON_SIGNOUT), clickEvent -> {
        closeMenu();
        EventBusFactory.getInstance().post(new ShellEvent.LogOut(this));
    }).withIcon(FontAwesome.SIGN_OUT);
    addMenuItem(logoutBtn);
}

From source file:ui.menu.LifetimeMenu.java

License:Apache License

private void initOrganizationsOptions() {
    organizationsButton = new LifetimeButtonLink("Organizations", FontAwesome.BUILDING);
    organizationsButton.addClickListener(this);
    organizationsButton.addFocusListener(this);

    ViewOrganizationsButton viewOrganizationsButton = new ViewOrganizationsButton(userId, language);
    VerticalLayout options = new VerticalLayout();
    options.setStyleName("v-menu-options");
    options.addComponent(viewOrganizationsButton);
    menu.put(organizationsButton, options);
}