}
private void initMenuBar(MenuBar menuBar) {
menuBar.clearItems();
if (!newUser) {
MenuItem mntmHome = new MenuItem("Home", false, homeCommand());
menuBar.addItem(mntmHome);
menuBar.addSeparator(new MenuItemSeparator());
}
MenuItem mntmProfile = new MenuItem("Profile", false, profileCommand());
menuBar.addItem(mntmProfile);
menuBar.addSeparator(new MenuItemSeparator());
if (!newUser) {
MenuItem mntmBuzz = new MenuItem("Opportunities", false,
opportunityCommand());
menuBar.addItem(mntmBuzz);
menuBar.addSeparator(new MenuItemSeparator());
}
MenuItem searchData = new MenuItem("Search", false, searchCommand());
menuBar.addItem(searchData);
menuBar.addSeparator(new MenuItemSeparator());
MenuItem mntmPulse = new MenuItem("Pulse", false, pulseCommand());
menuBar.addItem(mntmPulse);
menuBar.addStyleName("menuBar");
}