code: public <T> void setEntries(Collection<I_CmsSimpleContextMenuEntry<T>> entries, T data) {
  
          removeAllItems();
          Locale locale = UI.getCurrent().getLocale();
          for (final I_CmsSimpleContextMenuEntry<T> entry : entries) {
              CmsMenuItemVisibilityMode visibility = entry.getVisibility(data);
              if (!visibility.isInVisible()) {
                  ContextMenuItem item = addItem(entry.getTitle(locale));
                  if (visibility.isInActive()) {
                      item.setEnabled(false);
                      if (visibility.getMessageKey() != null) {
                          item.setDescription(CmsVaadinUtils.getMessageText(visibility.getMessageKey()));
                      }
                  } else {
                      item.setData(data);
                      item.addItemClickListener(new ContextMenuItemClickListener() {
  
                          @SuppressWarnings("unchecked")
                          public void contextMenuItemClicked(ContextMenuItemClickEvent event) {
  
                              entry.executeAction((T)((ContextMenuItem)event.getSource()).getData());
                          }
                      });
                  }
                  if (entry instanceof I_CmsSimpleContextMenuEntry.I_HasCssStyles) {
                      item.addStyleName(((I_CmsSimpleContextMenuEntry.I_HasCssStyles)entry).getStyles());
                  }
              }
          }
      }
docs: Sets the context menu entries. Removes all previously present entries.<p>
  
  @param entries the entries
  @param data the context data