Example usage for com.vaadin.ui Alignment TOP_CENTER

List of usage examples for com.vaadin.ui Alignment TOP_CENTER

Introduction

In this page you can find the example usage for com.vaadin.ui Alignment TOP_CENTER.

Prototype

Alignment TOP_CENTER

To view the source code for com.vaadin.ui Alignment TOP_CENTER.

Click Source Link

Usage

From source file:probe.com.view.body.quantdatasetsoverview.quantproteinstabsheet.studies.PeptidesComparisonsSequenceLayout.java

/**
 *
 * @param cp/*from   www  . ja  v  a  2s  .  com*/
 * @param width
 * @param Quant_Central_Manager
 */
public PeptidesComparisonsSequenceLayout(QuantCentralManager Quant_Central_Manager,
        final DiseaseGroupsComparisonsProteinLayout cp, int width) {
    this.studiesMap = new LinkedHashMap<String, StudyInfoData>();
    this.setColumns(4);
    this.setRows(3);
    this.setWidthUndefined();
    this.setSpacing(true);
    this.setMargin(new MarginInfo(true, false, false, false));
    comparisonTitle = new Label();
    comparisonTitle.setContentMode(ContentMode.HTML);
    comparisonTitle.setStyleName("custChartLabelHeader");
    comparisonTitle.setWidth((width - 55) + "px");
    this.addComponent(comparisonTitle, 1, 0);
    this.setComponentAlignment(comparisonTitle, Alignment.TOP_LEFT);

    closeBtn = new VerticalLayout();
    closeBtn.setWidth("20px");
    closeBtn.setHeight("20px");
    closeBtn.setStyleName("closebtn");
    this.addComponent(closeBtn, 2, 0);
    this.setComponentAlignment(closeBtn, Alignment.TOP_RIGHT);
    //end of toplayout
    //init comparison study layout

    GridLayout proteinSequenceComparisonsContainer = new GridLayout(2,
            cp.getComparison().getDatasetIndexes().length);
    proteinSequenceComparisonsContainer.setWidthUndefined();
    proteinSequenceComparisonsContainer.setHeightUndefined();
    proteinSequenceComparisonsContainer.setStyleName(Reindeer.LAYOUT_WHITE);
    proteinSequenceComparisonsContainer.setSpacing(true);
    proteinSequenceComparisonsContainer.setMargin(new MarginInfo(true, false, false, false));
    this.addComponent(proteinSequenceComparisonsContainer, 1, 1);
    coverageWidth = (width - 100 - 180);

    Map<Integer, Set<QuantPeptide>> dsQuantPepMap = new HashMap<Integer, Set<QuantPeptide>>();
    for (QuantPeptide quantPep : cp.getQuantPeptidesList()) {
        if (!dsQuantPepMap.containsKey(quantPep.getDsKey())) {
            Set<QuantPeptide> subList = new HashSet<QuantPeptide>();
            dsQuantPepMap.put(quantPep.getDsKey(), subList);
        }
        Set<QuantPeptide> subList = dsQuantPepMap.get(quantPep.getDsKey());
        subList.add(quantPep);
        dsQuantPepMap.put(quantPep.getDsKey(), subList);
    }

    int numb = 0;

    int panelWidth = Page.getCurrent().getBrowserWindowWidth() - 100;
    String groupCompTitle = cp.getComparison().getComparisonHeader();
    String updatedHeader = groupCompTitle.split(" / ")[0].split("\n")[0] + " / "
            + groupCompTitle.split(" / ")[1].split("\n")[0];//+ " ( " + groupCompTitle.split(" / ")[1].split("\n")[1] + " )";
    ;
    final StudyInformationPopupComponent studyInformationPopupPanel = new StudyInformationPopupComponent(
            panelWidth, cp.getProtName(), cp.getUrl(), cp.getComparison().getComparisonFullName());
    studyInformationPopupPanel.setVisible(false);

    LayoutEvents.LayoutClickListener studyListener = new LayoutEvents.LayoutClickListener() {

        @Override
        public void layoutClick(LayoutEvents.LayoutClickEvent event) {
            Integer dsId;
            if (event.getComponent() instanceof AbsoluteLayout) {
                dsId = (Integer) ((AbsoluteLayout) event.getComponent()).getData();
            } else {
                dsId = (Integer) ((VerticalLayout) event.getComponent()).getData();
            }
            studyInformationPopupPanel.updateContent(dsToStudyLayoutMap.get(dsId));
        }
    };
    TreeSet<QuantProtein> orderSet = new TreeSet<QuantProtein>(cp.getDsQuantProteinsMap().values());
    for (QuantProtein quantProtein : orderSet) {
        StudyInfoData exportData = new StudyInfoData();
        exportData.setCoverageWidth(coverageWidth);
        Label studyTitle = new Label();//"Study " + (numb + 1));
        studyTitle.setStyleName("peptideslayoutlabel");
        studyTitle.setHeightUndefined();
        studyTitle.setWidth("200px");

        Label iconTitle = new Label("#Patients ("
                + (quantProtein.getPatientsGroupIINumber() + quantProtein.getPatientsGroupINumber()) + ")");
        exportData.setSubTitle(iconTitle.getValue());

        iconTitle.setStyleName("peptideslayoutlabel");
        iconTitle.setHeightUndefined();
        if (quantProtein.getStringPValue().equalsIgnoreCase("Not Significant")
                || quantProtein.getStringFCValue().equalsIgnoreCase("Not regulated")) {
            iconTitle.setStyleName("notregicon");
            exportData.setTrend(0);
        } else if (quantProtein.getStringFCValue().equalsIgnoreCase("Decreased")) {
            iconTitle.setStyleName("downarricon");
            exportData.setTrend(-1);
        } else {
            exportData.setTrend(1);
            iconTitle.setStyleName("uparricon");
        }

        iconTitle.setDescription(cp.getProteinAccssionNumber() + " : #Patients ("
                + (quantProtein.getPatientsGroupIINumber() + quantProtein.getPatientsGroupINumber()) + ")  "
                + quantProtein.getStringFCValue() + " " + quantProtein.getStringPValue() + "");

        VerticalLayout labelContainer = new VerticalLayout();
        labelContainer.addComponent(studyTitle);
        labelContainer.addComponent(iconTitle);

        proteinSequenceComparisonsContainer.addComponent(labelContainer, 0, numb);
        proteinSequenceComparisonsContainer.setComponentAlignment(labelContainer, Alignment.TOP_CENTER);

        Map<Integer, ComparisonDetailsBean> patientGroupsNumToDsIdMap = new HashMap<Integer, ComparisonDetailsBean>();
        ComparisonDetailsBean pGr = new ComparisonDetailsBean();
        patientGroupsNumToDsIdMap
                .put((quantProtein.getPatientsGroupIINumber() + quantProtein.getPatientsGroupINumber()), pGr);
        QuantDatasetObject ds;

        ds = Quant_Central_Manager.getFullQuantDatasetMap().get(quantProtein.getDsKey());

        StudyPopupLayout study = new StudyPopupLayout(panelWidth, quantProtein, ds,
                cp.getProteinAccssionNumber(), cp.getUrl(), cp.getProtName(),
                Quant_Central_Manager.getDiseaseHashedColorMap());
        Set<QuantDatasetObject> qdsSet = new HashSet<QuantDatasetObject>();
        qdsSet.add(ds);
        study.setInformationData(qdsSet, cp);
        dsToStudyLayoutMap.put(ds.getDsKey(), study);

        labelContainer.addLayoutClickListener(studyListener);
        labelContainer.setData(ds.getDsKey());
        studyTitle.setValue("[" + (numb + 1) + "] " + ds.getAuthor());
        exportData.setTitle(ds.getAuthor());

        if (dsQuantPepMap.get(quantProtein.getDsKey()) == null) {
            Label noPeptidesInfoLabel = new Label("No Peptide Information Available ");
            noPeptidesInfoLabel.setHeightUndefined();
            noPeptidesInfoLabel.setStyleName("peptideslayoutlabel");
            VerticalLayout labelValueContainer = new VerticalLayout();
            labelValueContainer.addComponent(noPeptidesInfoLabel);
            labelValueContainer.addLayoutClickListener(studyListener);
            labelValueContainer.setData(ds.getDsKey());

            proteinSequenceComparisonsContainer.addComponent(labelValueContainer, 1, numb);
            proteinSequenceComparisonsContainer.setComponentAlignment(labelValueContainer,
                    Alignment.TOP_CENTER);
            numb++;
            studiesMap.put((numb + 1) + ds.getAuthor(), exportData);
            continue;
        }

        String key = "_-_" + quantProtein.getDsKey() + "_-_" + cp.getProteinAccssionNumber() + "_-_";
        PeptidesInformationOverviewLayout peptideInfoLayout = new PeptidesInformationOverviewLayout(
                cp.getSequence(), dsQuantPepMap.get(quantProtein.getDsKey()), coverageWidth, true,
                studyListener, ds.getDsKey());
        exportData.setPeptidesInfoList(peptideInfoLayout.getStackedPeptides());
        exportData.setLevelsNumber(peptideInfoLayout.getLevel());
        hasPTM = peptideInfoLayout.isHasPTM();
        peptidesInfoLayoutDSIndexMap.put(key, peptideInfoLayout);
        proteinSequenceComparisonsContainer.addComponent(peptideInfoLayout, 1, numb);
        numb++;
        studiesMap.put((numb + 1) + ds.getAuthor(), exportData);

    }

    String rgbColor = Quant_Central_Manager
            .getDiseaseHashedColor(groupCompTitle.split(" / ")[1].split("\n")[1]);
    comparisonTitle.setValue("<font color='" + rgbColor + "' style='font-weight: bold;'>" + updatedHeader
            + " (#Datasets " + numb + "/" + cp.getComparison().getDatasetIndexes().length + ")</font>");
    comparisonTitle.setDescription(cp.getComparison().getComparisonFullName());
    VerticalLayout bottomSpacer = new VerticalLayout();
    bottomSpacer.setWidth((width - 100) + "px");
    bottomSpacer.setHeight("10px");
    bottomSpacer.setStyleName("dottedline");
    this.addComponent(bottomSpacer, 1, 2);

}

From source file:probe.com.view.body.welcomelayout.PublicationsInformationWindow.java

public PublicationsInformationWindow(List<Object[]> publicationList) {

    int height = Page.getCurrent().getBrowserWindowHeight() - 100;
    int width = Page.getCurrent().getBrowserWindowWidth() - 100;
    int columnNum = width / 250;
    width = columnNum * 250;//  ww  w .j a v a  2s .co  m
    VerticalLayout popupBodyWrapper = new VerticalLayout();
    popupBodyWrapper.setWidth("100%");
    popupBodyWrapper.setHeight("100%");
    VerticalLayout popupBody = new VerticalLayout();
    popupBody.setWidth((width) + "px");
    popupBody.setHeightUndefined();
    popupBody.setStyleName(Reindeer.LAYOUT_WHITE);
    popupBody.setMargin(true);
    popupBody.setSpacing(true);
    popupBodyWrapper.addComponent(popupBody);
    popupBodyWrapper.setComponentAlignment(popupBody, Alignment.TOP_CENTER);

    popupWindow = new Window() {

        @Override
        public void close() {
            popupWindow.setVisible(false);

        }

    };

    popupWindow.setContent(popupBodyWrapper);
    popupWindow.setWindowMode(WindowMode.NORMAL);

    popupWindow.setWidth((width + 22) + "px");

    popupWindow.setVisible(false);
    popupWindow.setResizable(false);
    popupWindow.setClosable(false);
    popupWindow.setStyleName(Reindeer.WINDOW_LIGHT);
    popupWindow.setModal(true);
    popupWindow.setDraggable(false);
    popupWindow.setCaption(
            "<font color='gray' style='font-weight: bold;!important'>&nbsp;&nbsp;Publication Information</font>");

    UI.getCurrent().addWindow(popupWindow);
    popupWindow.center();

    popupWindow.setCaptionAsHtml(true);
    popupWindow.setClosable(true);

    GridLayout publicationContainer = new GridLayout();
    publicationContainer.setWidth("100%");
    publicationContainer.setSpacing(true);
    publicationContainer.setMargin(true);
    popupBody.addComponent(publicationContainer);

    publicationContainer.setColumns(columnNum);
    publicationContainer.setRows(publicationList.size());

    this.addLayoutClickListener(PublicationsInformationWindow.this);
    int row = 0;
    int col = 0;

    for (Object[] obj : publicationList) {
        VerticalLayout publicationLayout = initPublicationLayout(obj);
        String btnName = "<font size=1 >" + obj[0].toString() + "</font><br/>" + obj[1].toString()
                + "<br/><font size=1 >" + obj[2].toString() + "</font><br/><font size=1 >#Proteins: "
                + obj[5].toString() /*+ "/" + obj[5].toString() + */ + "   #Peptides: "
                + obj[7].toString() /*+ "/" + obj[7].toString() +*/ + "</font>";

        PopupInfoBtn publicationBtn = new PopupInfoBtn(publicationLayout, btnName, obj[1].toString());
        publicationContainer.addComponent(publicationBtn, col++, row);
        publicationContainer.setComponentAlignment(publicationBtn, Alignment.TOP_CENTER);
        if (col >= columnNum) {
            row++;
            col = 0;

        }
    }
    height = Math.min((++row * 85) + 200, height);
    popupWindow.setHeight((height) + "px");

}

From source file:probe.com.view.body.welcomelayout.StudiesInformationWindow.java

public StudiesInformationWindow(Set<QuantDatasetObject> dsObjects, Map<String, String> diseaseHashedColorMap) {

    int height = Page.getCurrent().getBrowserWindowHeight() - 100;
    int width = Page.getCurrent().getBrowserWindowWidth() - 100;
    VerticalLayout popupBody = new VerticalLayout();
    popupBody.setWidth((width - 20) + "px");
    popupBody.setHeightUndefined();// www.j  av  a 2  s  . co m
    popupBody.setStyleName(Reindeer.LAYOUT_WHITE);
    popupBody.setMargin(true);
    popupBody.setSpacing(true);

    popupWindow = new Window() {

        @Override
        public void close() {
            popupWindow.setVisible(false);

        }

    };

    popupWindow.setContent(popupBody);
    popupWindow.setWindowMode(WindowMode.NORMAL);
    popupWindow.setWidth((width) + "px");
    popupWindow.setHeight((height) + "px");
    popupWindow.setVisible(false);
    popupWindow.setResizable(false);
    popupWindow.setClosable(false);
    popupWindow.setStyleName(Reindeer.WINDOW_LIGHT);
    popupWindow.setModal(true);
    popupWindow.setDraggable(false);
    popupWindow.center();

    popupWindow.setCaption(
            "<font color='gray' style='font-weight: bold;!important'>&nbsp;&nbsp;Datasets Information</font>");

    UI.getCurrent().addWindow(popupWindow);
    popupWindow.center();

    popupWindow.setCaptionAsHtml(true);
    popupWindow.setClosable(true);
    this.addLayoutClickListener(StudiesInformationWindow.this);

    Map<Integer, DatasetInformationOverviewLayout> datasetInfoLayoutDSIndexMap = new HashMap<Integer, DatasetInformationOverviewLayout>();
    for (QuantDatasetObject quantDs : dsObjects) {
        DatasetInformationOverviewLayout datasetInfoLayout = new DatasetInformationOverviewLayout(width - 40,
                diseaseHashedColorMap);
        datasetInfoLayout.updateDatasetForm(quantDs);
        //                datasetInfoLayout.setWidth(width-40+"px");
        datasetInfoLayoutDSIndexMap.put(quantDs.getDsKey(), datasetInfoLayout);

    }

    StudyPopupLayout studiesPopupLayout = new StudyPopupLayout(datasetInfoLayoutDSIndexMap);

    popupBody.addComponent(studiesPopupLayout);
    popupBody.setComponentAlignment(studiesPopupLayout, Alignment.TOP_CENTER);
    studiesPopupLayout.setInformationData(dsObjects);

}

From source file:probe.com.view.core.exporter.ExportUnit.java

/**
 *
 *///from   ww  w .ja va2s.  c  om
public ExportUnit() {

    topLayout = new HorizontalLayout();
    bottomLayout = new HorizontalLayout();

    // init layout
    this.addStyleName(Reindeer.LAYOUT_BLUE);
    this.setHeight("120px");
    this.setWidth("200px");
    this.setSpacing(true);
    this.setMargin(false);

    topLayout.setWidth("100%");
    topLayout.setHeight("80px");
    topLayout.setMargin(true);
    this.addComponent(topLayout);
    this.setComponentAlignment(topLayout, Alignment.TOP_CENTER);

    bottomLayout.setWidth("100%");
    bottomLayout.setHeight("40px");
    bottomLayout.setMargin(true);
    this.addComponent(bottomLayout);
    this.setComponentAlignment(bottomLayout, Alignment.MIDDLE_CENTER);

    typeGroup = new OptionGroup("");
    // Use the single selection mode.
    typeGroup.setMultiSelect(false);
    typeGroup.addItem("Validated Only");
    typeGroup.addItem("All");
    typeGroup.select("Validated Only");
    topLayout.addComponent(typeGroup);
    topLayout.setComponentAlignment(typeGroup, Alignment.MIDDLE_CENTER);
    topLayout.setExpandRatio(typeGroup, 0.5f);

    exportGroup = new OptionGroup(""); // Use the single selection mode.       
    exportGroup.setMultiSelect(false);
    exportGroup.addItem("csv");
    exportGroup.addItem("xls");
    exportGroup.select("csv");
    topLayout.addComponent(exportGroup);
    topLayout.setComponentAlignment(exportGroup, Alignment.MIDDLE_CENTER);
    topLayout.setExpandRatio(exportGroup, 0.5f);

    exportBtn = new Button("Export");
    exportBtn.setStyleName(Reindeer.BUTTON_SMALL);
    bottomLayout.addComponent(exportBtn);
    bottomLayout.setComponentAlignment(exportBtn, Alignment.BOTTOM_CENTER);

}

From source file:probe.com.view.core.QuantDataUploader.java

/**
 * initialize the upload unit layout//w ww .  ja va2 s . c  o  m
 */
private void initLayouts() {

    Label selectFileTitle = new Label(
            "<h4  style='font-family:verdana;font-weight:bold;'><strong aligen='center' style='font-family:verdana;color:#00000;'>Upload New File</strong></h4>");
    selectFileTitle.setContentMode(ContentMode.HTML);
    selectFileTitle.setHeight("45px");
    selectFileTitle.setWidth("100%");
    this.addComponent(selectFileTitle);
    this.setComponentAlignment(selectFileTitle, Alignment.TOP_CENTER);

    upload = new Upload(null, this);
    upload.setStyleName("small");
    upload.setVisible(true);
    upload.setHeight("30px");
    upload.setWidth("100%");
    upload.setButtonCaption("UPLOAD ADD / EDIT EXPERIMENT");
    upload.addSucceededListener(this);
    this.addComponent(upload);

}

From source file:ro.zg.netcell.vaadin.action.ActionsManager.java

License:Apache License

private void showProgressIndicator(ComponentContainer container) {
    if (container == null) {
        return;//from  ww w. j ava2  s.  c  o m
    }
    container.removeAllComponents();
    GridLayout lc = new GridLayout(1, 1);
    lc.setSizeFull();
    ProgressIndicator pi = new ProgressIndicator();
    pi.setIndeterminate(true);
    lc.addComponent(pi, 0, 0);
    lc.setComponentAlignment(pi, Alignment.TOP_CENTER);
    container.addComponent(lc);
}

From source file:trader.LoginUI.java

License:Apache License

@Override
protected void init(VaadinRequest request) {

    setLocale(Locale.ENGLISH);//  w w w.j  a va 2 s . com

    FormLayout loginForm = new FormLayout();
    loginForm.setSizeUndefined();

    loginForm.addComponent(userName = new TextField("Username"));
    loginForm.addComponent(passwordField = new PasswordField("Password"));
    loginForm.addComponent(rememberMe = new CheckBox("Remember me"));
    loginForm.addComponent(login = new Button("Login"));
    login.addStyleName(ValoTheme.BUTTON_PRIMARY);
    login.setDisableOnClick(true);
    login.setClickShortcut(ShortcutAction.KeyCode.ENTER);
    login.addClickListener(new Button.ClickListener() {
        /**
        * 
        */
        private static final long serialVersionUID = 7813011112417170727L;

        @Override
        public void buttonClick(Button.ClickEvent event) {
            login();
        }
    });

    VerticalLayout loginLayout = new VerticalLayout();
    loginLayout.setSpacing(true);
    loginLayout.setSizeUndefined();

    if (request.getParameter("logout") != null) {
        loggedOutLabel = new Label("You have been logged out!");
        loggedOutLabel.addStyleName(ValoTheme.LABEL_SUCCESS);
        loggedOutLabel.setSizeUndefined();
        loginLayout.addComponent(loggedOutLabel);
        loginLayout.setComponentAlignment(loggedOutLabel, Alignment.BOTTOM_CENTER);
    }

    loginLayout.addComponent(loginFailedLabel = new Label());
    loginLayout.setComponentAlignment(loginFailedLabel, Alignment.BOTTOM_CENTER);
    loginFailedLabel.setSizeUndefined();
    loginFailedLabel.addStyleName(ValoTheme.LABEL_FAILURE);
    loginFailedLabel.setVisible(false);

    loginLayout.addComponent(loginForm);
    loginLayout.setComponentAlignment(loginForm, Alignment.TOP_CENTER);

    VerticalLayout rootLayout = new VerticalLayout(loginLayout);
    rootLayout.setSizeFull();
    rootLayout.setComponentAlignment(loginLayout, Alignment.MIDDLE_CENTER);
    setContent(rootLayout);
    setSizeFull();
}

From source file:ui.list.LifetimeList.java

public LifetimeList(Integer userId, String language) {
    setSizeFull();/*  ww w . j  a va  2  s .  c o m*/
    this.userId = userId;
    this.language = language;
    base = new VerticalLayout();
    base.setMargin(true);
    base.setSpacing(true);
    //base.setSizeFull();
    base.setWidth("100%");
    base.setStyleName("a-list");
    setContent(base);
    //
    stats = new HorizontalLayout();
    stats.setStyleName("stats");
    //stats.setSizeFull();
    //
    main = new VerticalLayout();
    //main.setSizeFull();
    initAllComponents();
    //
    base.addComponents(stats, main);
    base.setExpandRatio(main, .9f);
    base.setExpandRatio(stats, .1f);
    base.setComponentAlignment(main, Alignment.TOP_CENTER);
    base.setComponentAlignment(stats, Alignment.MIDDLE_LEFT);
    //
    setStyleName("a-list");
}

From source file:ui.menu.LifetimeMenu.java

License:Apache License

public LifetimeMenu(Integer userId, String language) {
    super();//  ww w . java2  s  . com
    setWidth("100%");
    this.userId = userId;
    this.language = language;
    //
    menu = new HashMap();
    // 
    // Account
    initProfileOptions();
    initAchievementsOptions();
    initOrganizationsOptions();
    initJobOffersOptions();
    initJobApplicationsOptions();
    initShareOptions();
    initHelpOptions();
    initLanguageOptions();
    initMoreMenuOptions();
    //
    profileView = new VerticalLayout(profileButton, menu.get(profileButton));
    profileView.setStyleName("v-menu");
    // Achievements
    achievementView = new VerticalLayout(achievementsButton, menu.get(achievementsButton));
    achievementView.setStyleName("v-menu");
    // Organizations
    organizationsView = new VerticalLayout(organizationsButton, menu.get(organizationsButton));
    organizationsView.setStyleName("v-menu");
    // Job Offers
    jOfferView = new VerticalLayout(jobOffersButton, menu.get(jobOffersButton));
    jOfferView.setStyleName("v-menu");
    // Job Applications
    jApplicationView = new VerticalLayout(jobApplicationsButton, menu.get(jobApplicationsButton));
    jApplicationView.setStyleName("v-menu");
    // Social
    socialView = new VerticalLayout(shareButton, menu.get(shareButton));
    socialView.setStyleName("v-menu");
    // Documentation
    helpView = new VerticalLayout(helpButton, menu.get(helpButton));
    helpView.setStyleName("v-menu");

    languageView = new VerticalLayout(languageButton, menu.get(languageButton));
    languageView.setStyleName("v-menu");

    moreView = new VerticalLayout(menuButton, menu.get(menuButton));
    moreView.setStyleName("v-menu");

    // Packibg Body
    // secondary.setVisible(false);
    //
    addComponents(profileView, achievementView, organizationsView, jOfferView, jApplicationView, socialView,
            helpView, languageView, moreView);
    profileView.setComponentAlignment(profileButton, Alignment.TOP_CENTER);
    achievementView.setComponentAlignment(achievementsButton, Alignment.TOP_CENTER);
    organizationsView.setComponentAlignment(organizationsButton, Alignment.TOP_CENTER);
    jOfferView.setComponentAlignment(jobOffersButton, Alignment.TOP_CENTER);
    jApplicationView.setComponentAlignment(jobApplicationsButton, Alignment.TOP_CENTER);
    socialView.setComponentAlignment(shareButton, Alignment.TOP_CENTER);
    helpView.setComponentAlignment(helpButton, Alignment.TOP_CENTER);
    languageView.setComponentAlignment(languageButton, Alignment.TOP_CENTER);
    moreView.setComponentAlignment(menuButton, Alignment.TOP_CENTER);
    setStyleName("M-menu");
}