@Test public void testWhenShowingContextMenuViewThenAlsoListSelectorIsShown() { contextMenuView.show(); verify(listSelector).bind(any(), anyInt(), anyInt()); verify(listSelector).show(); }
@Override public void show() { listSelector.bind(this, 0, 0); listSelector.show(); DomGlobal.document.addEventListener(BrowserEvents.MOUSEDOWN, hideContextMenuHandler, false); DomGlobal.document.addEventListener(BrowserEvents.MOUSEWHEEL, hideContextMenuHandler, false); }
ContextMenuView implements ContextMenu.View,
                                        HasListSelectorControl { @Override public void show() { listSelector.bind(this, 0, 0); listSelector.show(); DomGlobal.document.addEventListener(BrowserEvents.MOUSEDOWN, hideContextMenuHandler, false); DomGlobal.document.addEventListener(BrowserEvents.MOUSEWHEEL, hideContextMenuHandler, false); } }
ContextMenuView implements ContextMenu.View,
                                        HasListSelectorControl { @Override public void show() { listSelector.bind(this, 0, 0); listSelector.show(); DomGlobal.document.addEventListener(BrowserEvents.MOUSEDOWN, hideContextMenuHandler, false); DomGlobal.document.addEventListener(BrowserEvents.MOUSEWHEEL, hideContextMenuHandler, false); } @Inject  ContextMenuView(final ListSelector listSelector); }
ContextMenuView implements ContextMenu.View,
                                        HasListSelectorControl { @Override public void show() { listSelector.bind(this, 0, 0); listSelector.show(); DomGlobal.document.addEventListener(BrowserEvents.MOUSEDOWN, hideContextMenuHandler, false); DomGlobal.document.addEventListener(BrowserEvents.MOUSEWHEEL, hideContextMenuHandler, false); } @Inject  ContextMenuView(final ListSelector listSelector); @Override void init(final ContextMenu presenter); @Override void show(); @Override void hide(); @Override List<ListSelectorItem> getItems(final int uiRowIndex, final int uiColumnIndex); @Override void onItemSelected(final ListSelectorItem item); }
ContextMenuView implements ContextMenu.View,
                                        HasListSelectorControl { @Override public void show() { listSelector.bind(this, 0, 0); listSelector.show(); DomGlobal.document.addEventListener(BrowserEvents.MOUSEDOWN, hideContextMenuHandler, false); DomGlobal.document.addEventListener(BrowserEvents.MOUSEWHEEL, hideContextMenuHandler, false); } @Inject  ContextMenuView(final ListSelector listSelector); @Override void init(final ContextMenu presenter); @Override void show(); @Override void hide(); @Override List<ListSelectorItem> getItems(final int uiRowIndex, final int uiColumnIndex); @Override void onItemSelected(final ListSelectorItem item);  }