@Test public void isShown() { when(rootPanelMock.getWidgetIndex(viewMock)).thenReturn(1); assertTrue(baseMenu.isShown()); when(rootPanelMock.getWidgetIndex(viewMock)).thenReturn(-1); assertFalse(baseMenu.isShown()); }
@Override public boolean isShown() { return getRootPanel().getWidgetIndex(view) != -1; }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public boolean isShown() { return getRootPanel().getWidgetIndex(view) != -1; } }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public boolean isShown() { return getRootPanel().getWidgetIndex(view) != -1; }  }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public boolean isShown() { return getRootPanel().getWidgetIndex(view) != -1; }  @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 boolean isShown() { return getRootPanel().getWidgetIndex(view) != -1; }  @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);  }