Пример #1
0
 /** Add a MenuItem with the GWT-Links style. */
 public MenuItem addItem(MenuItem item) {
   item.addStyleName(LinksClientBundle.INSTANCE.css().connectionPopupItem());
   return menu.addItem(item);
 }
Пример #2
0
 public ContextMenu() {
   super(true);
   addStyleName(LinksClientBundle.INSTANCE.css().connectionPopup());
   add(menu);
   disableBrowserContextMenu(getElement());
 }