@Test public void testShow() { view.show(Optional.empty()); verify(viewElementCSSClasses).add(OPEN); verify(viewElement).focus(); }
@Override public void show(final Optional<String> title) { getElement().getClassList().add(OPEN); schedule(() -> getElement().focus()); }
ListSelectorViewImpl implements ListSelectorView { @Override public void show(final Optional<String> title) { getElement().getClassList().add(OPEN); schedule(() -> getElement().focus()); } }
ListSelectorViewImpl implements ListSelectorView { @Override public void show(final Optional<String> title) { getElement().getClassList().add(OPEN); schedule(() -> getElement().focus()); } ListSelectorViewImpl(); @Inject  ListSelectorViewImpl(final UnorderedList itemsContainer,
                                final ManagedInstance<ListSelectorTextItemView> listSelectorTextItemViews,
                                final ManagedInstance<ListSelectorDividerItemView> listSelectorDividerItemViews,
                                final ManagedInstance<ListSelectorHeaderItemView> listSelectorHeaderItemViews); }
ListSelectorViewImpl implements ListSelectorView { @Override public void show(final Optional<String> title) { getElement().getClassList().add(OPEN); schedule(() -> getElement().focus()); } ListSelectorViewImpl(); @Inject  ListSelectorViewImpl(final UnorderedList itemsContainer,
                                final ManagedInstance<ListSelectorTextItemView> listSelectorTextItemViews,
                                final ManagedInstance<ListSelectorDividerItemView> listSelectorDividerItemViews,
                                final ManagedInstance<ListSelectorHeaderItemView> listSelectorHeaderItemViews); @Override void init(final Presenter presenter); @Override void setItems(final List<ListSelectorItem> items); @Override void show(final Optional<String> title); @Override void hide(); @Override void setOnClosedByKeyboardCallback(final Consumer<CanBeClosedByKeyboard> callback); }
ListSelectorViewImpl implements ListSelectorView { @Override public void show(final Optional<String> title) { getElement().getClassList().add(OPEN); schedule(() -> getElement().focus()); } ListSelectorViewImpl(); @Inject  ListSelectorViewImpl(final UnorderedList itemsContainer,
                                final ManagedInstance<ListSelectorTextItemView> listSelectorTextItemViews,
                                final ManagedInstance<ListSelectorDividerItemView> listSelectorDividerItemViews,
                                final ManagedInstance<ListSelectorHeaderItemView> listSelectorHeaderItemViews); @Override void init(final Presenter presenter); @Override void setItems(final List<ListSelectorItem> items); @Override void show(final Optional<String> title); @Override void hide(); @Override void setOnClosedByKeyboardCallback(final Consumer<CanBeClosedByKeyboard> callback);  }