@Test public void show() { int x = 10; int y = 20; baseMenu.show(x, y); verify(baseMenu, times(1)).hide(); verify(styleMock, times(1)).setLeft(x, Style.Unit.PX); verify(styleMock, times(1)).setTop(y, Style.Unit.PX); verify(styleMock, times(1)).setDisplay(Style.Display.BLOCK); }
@Override public void show(final int mx, final int my) { hide(); getRootPanel().add(this); view.getContextMenuDropdown().getStyle().setLeft(mx, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setTop(my, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setDisplay(Style.Display.BLOCK); }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void show(final int mx, final int my) { hide(); getRootPanel().add(this); view.getContextMenuDropdown().getStyle().setLeft(mx, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setTop(my, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setDisplay(Style.Display.BLOCK); } }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void show(final int mx, final int my) { hide(); getRootPanel().add(this); view.getContextMenuDropdown().getStyle().setLeft(mx, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setTop(my, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setDisplay(Style.Display.BLOCK); }  }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void show(final int mx, final int my) { hide(); getRootPanel().add(this); view.getContextMenuDropdown().getStyle().setLeft(mx, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setTop(my, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setDisplay(Style.Display.BLOCK); }  @PostConstruct @Override void initialise(); @Override LIElement addMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItem(String id, String label, String i18n, Event event); @Override LIElement addExecutableMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItemAfter(String id, String label, String i18n, LIElement previous); @Override void removeMenuItem(LIElement toRemove); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override Widget asWidget(); @Override void show(final int mx, final int my); @Override void hide(); @Override boolean isShown(); @Override BaseMenuView getView(); @Override void enableElement(Element element, boolean enabled); @Override boolean isDisabled(final Element element); @Override void onContextMenuEvent(ContextMenuEvent event); }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void show(final int mx, final int my) { hide(); getRootPanel().add(this); view.getContextMenuDropdown().getStyle().setLeft(mx, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setTop(my, Style.Unit.PX); view.getContextMenuDropdown().getStyle().setDisplay(Style.Display.BLOCK); }  @PostConstruct @Override void initialise(); @Override LIElement addMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItem(String id, String label, String i18n, Event event); @Override LIElement addExecutableMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItemAfter(String id, String label, String i18n, LIElement previous); @Override void removeMenuItem(LIElement toRemove); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override Widget asWidget(); @Override void show(final int mx, final int my); @Override void hide(); @Override boolean isShown(); @Override BaseMenuView getView(); @Override void enableElement(Element element, boolean enabled); @Override boolean isDisabled(final Element element); @Override void onContextMenuEvent(ContextMenuEvent event);  }