@Test public void testShow() { listSelector.bind(bound, 0, 0); listSelector.show(); verify(view).show(Optional.empty()); }
@Override public void bind(final HasListSelectorControl bound, final int uiRowIndex, final int uiColumnIndex) { super.bind(bound, uiRowIndex, uiColumnIndex); binding.ifPresent(b -> { final List<ListSelectorItem> items = b.getItems(uiRowIndex, uiColumnIndex); if (items.isEmpty()) { bind(null, uiRowIndex, uiColumnIndex); } else { view.setItems(b.getItems(uiRowIndex, uiColumnIndex)); } }); }
ListSelector extends AbstractPopoverImpl<ListSelectorView, HasListSelectorControl> implements ListSelectorView.Presenter { @Override public void bind(final HasListSelectorControl bound, final int uiRowIndex, final int uiColumnIndex) { super.bind(bound, uiRowIndex, uiColumnIndex); binding.ifPresent(b -> { final List<ListSelectorItem> items = b.getItems(uiRowIndex, uiColumnIndex); if (items.isEmpty()) { bind(null, uiRowIndex, uiColumnIndex); } else { view.setItems(b.getItems(uiRowIndex, uiColumnIndex)); } }); } }
ListSelector extends AbstractPopoverImpl<ListSelectorView, HasListSelectorControl> implements ListSelectorView.Presenter { @Override public void bind(final HasListSelectorControl bound, final int uiRowIndex, final int uiColumnIndex) { super.bind(bound, uiRowIndex, uiColumnIndex); binding.ifPresent(b -> { final List<ListSelectorItem> items = b.getItems(uiRowIndex, uiColumnIndex); if (items.isEmpty()) { bind(null, uiRowIndex, uiColumnIndex); } else { view.setItems(b.getItems(uiRowIndex, uiColumnIndex)); } }); } ListSelector(); @Inject  ListSelector(final ListSelectorView view); }
ListSelector extends AbstractPopoverImpl<ListSelectorView, HasListSelectorControl> implements ListSelectorView.Presenter { @Override public void bind(final HasListSelectorControl bound, final int uiRowIndex, final int uiColumnIndex) { super.bind(bound, uiRowIndex, uiColumnIndex); binding.ifPresent(b -> { final List<ListSelectorItem> items = b.getItems(uiRowIndex, uiColumnIndex); if (items.isEmpty()) { bind(null, uiRowIndex, uiColumnIndex); } else { view.setItems(b.getItems(uiRowIndex, uiColumnIndex)); } }); } ListSelector(); @Inject  ListSelector(final ListSelectorView view); @Override void onItemSelected(final ListSelectorItem item); @Override void bind(final HasListSelectorControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex); }
ListSelector extends AbstractPopoverImpl<ListSelectorView, HasListSelectorControl> implements ListSelectorView.Presenter { @Override public void bind(final HasListSelectorControl bound, final int uiRowIndex, final int uiColumnIndex) { super.bind(bound, uiRowIndex, uiColumnIndex); binding.ifPresent(b -> { final List<ListSelectorItem> items = b.getItems(uiRowIndex, uiColumnIndex); if (items.isEmpty()) { bind(null, uiRowIndex, uiColumnIndex); } else { view.setItems(b.getItems(uiRowIndex, uiColumnIndex)); } }); } ListSelector(); @Inject  ListSelector(final ListSelectorView view); @Override void onItemSelected(final ListSelectorItem item); @Override void bind(final HasListSelectorControl bound,
                     final int uiRowIndex,
                     final int uiColumnIndex);  }