@Test public void testAddingTextMenuItemForContextMenuThenItemListContainsIt() { contextMenu.addTextMenuItem(TITLE, true, DO_NOTHING); verifyTextMenuItem(); }
public void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command) { menuItems.add(ListSelectorTextItem.build(itemName, isEnabled, command)); }
ContextMenu { public void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command) { menuItems.add(ListSelectorTextItem.build(itemName, isEnabled, command)); } }
ContextMenu { public void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command) { menuItems.add(ListSelectorTextItem.build(itemName, isEnabled, command)); } @Inject  ContextMenu(final View view); }
ContextMenu { public void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command) { menuItems.add(ListSelectorTextItem.build(itemName, isEnabled, command)); } @Inject  ContextMenu(final View view); @PostConstruct void init(); void show(); void show(Consumer<ContextMenu> contextMenuConsumer); void hide(); HTMLElement getElement(); List<ListSelectorItem> getItems(); void resetMenuItems(); void setHeaderMenu(final String title, final String iconClass); void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command); }
ContextMenu { public void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command) { menuItems.add(ListSelectorTextItem.build(itemName, isEnabled, command)); } @Inject  ContextMenu(final View view); @PostConstruct void init(); void show(); void show(Consumer<ContextMenu> contextMenuConsumer); void hide(); HTMLElement getElement(); List<ListSelectorItem> getItems(); void resetMenuItems(); void setHeaderMenu(final String title, final String iconClass); void addTextMenuItem(final String itemName, final boolean isEnabled, final Command command);  }