@Test public void testPrefilledConstruction() { final BasicEventList<String> source = new BasicEventList<>(); source.addAll(GlazedListsTests.delimitedStringToList("A B C D E F")); final List list = new List(getShell(), SWT.MULTI); final DefaultEventListViewer<String> viewer = new DefaultEventListViewer<>(source, list); assertSame(list, viewer.getList()); assertEquals(source.size(), list.getItemCount()); assertTrue(Arrays.equals(source.toArray(new String[source.size()]), list.getItems())); assertEquals("A", list.getItem(0)); assertEquals("B", list.getItem(1)); assertEquals("C", list.getItem(2)); assertEquals("D", list.getItem(3)); assertEquals("E", list.getItem(4)); assertEquals("F", list.getItem(5)); }
public List getList() { return list; }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); ItemFormat<? super E> getItemFormat(); List getList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent<E> listChanges); void invertSelection(); void dispose(); }
DefaultEventListViewer implements ListEventListener<E> { public List getList() { return list; } DefaultEventListViewer(EventList<E> source, List list);  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat); protected  DefaultEventListViewer(EventList<E> source, List list, ItemFormat<? super E> itemFormat, boolean disposeSource); ItemFormat<? super E> getItemFormat(); List getList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent<E> listChanges); void invertSelection(); void dispose();  }