@Override
  protected void initRelatedComponents() {
    associateCampaignList = new LeadCampaignListComp();

    noteListItems = new NoteListItems(AppContext.getMessage(CrmCommonI18nEnum.TAB_NOTE));
    noteListItems.setEnableCreateButton(false);

    associateActivityList = new ActivityRelatedItemListComp(false);

    CssLayout navigatorWrapper = previewItemContainer.getNavigatorWrapper();
    MVerticalLayout basicInfo = new MVerticalLayout().withWidth("100%").withStyleName("basic-info");

    dateInfoComp = new DateInfoComp();
    basicInfo.addComponent(dateInfoComp);

    peopleInfoComp = new PeopleInfoComp();
    basicInfo.addComponent(peopleInfoComp);

    navigatorWrapper.addComponentAsFirst(basicInfo);

    previewItemContainer.addTab(previewContent, CrmTypeConstants.DETAIL, "About");
    previewItemContainer.addTab(associateCampaignList, CrmTypeConstants.CAMPAIGN, "Campaigns");
    previewItemContainer.addTab(associateActivityList, CrmTypeConstants.ACTIVITY, "Activities");
  }
Exemplo n.º 2
0
 protected void displayNotes() {
   noteListItems.showNotes(CrmTypeConstants.LEAD, beanItem.getId());
 }