@Test public void testReturnFocusToPanel() { view.setOnClosedByKeyboardCallback(canBeClosedByKeyboardConsumer); view.returnFocusToPanel(); verify(canBeClosedByKeyboardConsumer).accept(view); }
void returnFocusToPanel() { closedByKeyboardCallback.ifPresent(c -> c.accept(this)); }
ListSelectorViewImpl implements ListSelectorView { void returnFocusToPanel() { closedByKeyboardCallback.ifPresent(c -> c.accept(this)); } }
ListSelectorViewImpl implements ListSelectorView { void returnFocusToPanel() { closedByKeyboardCallback.ifPresent(c -> c.accept(this)); } ListSelectorViewImpl(); @Inject  ListSelectorViewImpl(final UnorderedList itemsContainer,
                                final ManagedInstance<ListSelectorTextItemView> listSelectorTextItemViews,
                                final ManagedInstance<ListSelectorDividerItemView> listSelectorDividerItemViews,
                                final ManagedInstance<ListSelectorHeaderItemView> listSelectorHeaderItemViews); }
ListSelectorViewImpl implements ListSelectorView { void returnFocusToPanel() { closedByKeyboardCallback.ifPresent(c -> c.accept(this)); } 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 { void returnFocusToPanel() { closedByKeyboardCallback.ifPresent(c -> c.accept(this)); } 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);  }