@Test public void testSetTableFormatNull() { final EventList<Color> source = GlazedLists.eventList(RGBNull); final TableFormat<Color> tableFormat = new ColorTableFormat(); final Table table = new Table(getShell(), SWT.CHECK); DefaultEventTableViewer<Color> viewer = new DefaultEventTableViewer<>(source, table, tableFormat); try { viewer.setTableFormat(null); fail("expected IllegalArgumentException for null TableFormat"); } catch (IllegalArgumentException ex) { } }
public void setTableFormat(TableFormat<? super E> tableFormat) { if (tableFormat == null) { throw new IllegalArgumentException("TableFormat may not be null"); } this.tableFormat = tableFormat; table.setRedraw(false); removeTableColumns(); initTable(); this.tableHandler.redraw(); table.setRedraw(true); }
DefaultEventTableViewer implements ListEventListener<E> { public void setTableFormat(TableFormat<? super E> tableFormat) { if (tableFormat == null) { throw new IllegalArgumentException("TableFormat may not be null"); } this.tableFormat = tableFormat; table.setRedraw(false); removeTableColumns(); initTable(); this.tableHandler.redraw(); table.setRedraw(true); } }
DefaultEventTableViewer implements ListEventListener<E> { public void setTableFormat(TableFormat<? super E> tableFormat) { if (tableFormat == null) { throw new IllegalArgumentException("TableFormat may not be null"); } this.tableFormat = tableFormat; table.setRedraw(false); removeTableColumns(); initTable(); this.tableHandler.redraw(); table.setRedraw(true); } DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); protected  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer, boolean disposeSource); }
DefaultEventTableViewer implements ListEventListener<E> { public void setTableFormat(TableFormat<? super E> tableFormat) { if (tableFormat == null) { throw new IllegalArgumentException("TableFormat may not be null"); } this.tableFormat = tableFormat; table.setRedraw(false); removeTableColumns(); initTable(); this.tableHandler.redraw(); table.setRedraw(true); } DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); protected  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer, boolean disposeSource); TableFormat<? super E> getTableFormat(); void setTableFormat(TableFormat<? super E> tableFormat); TableItemConfigurer<? super E> getTableItemConfigurer(); void setTableItemConfigurer(TableItemConfigurer<? super E> tableItemConfigurer); Table getTable(); void setCheckedOnly(boolean checkedOnly); boolean getCheckedOnly(); List<E> getAllChecked(); EventList<E> getSourceList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent listChanges); void invertSelection(); void dispose(); }
DefaultEventTableViewer implements ListEventListener<E> { public void setTableFormat(TableFormat<? super E> tableFormat) { if (tableFormat == null) { throw new IllegalArgumentException("TableFormat may not be null"); } this.tableFormat = tableFormat; table.setRedraw(false); removeTableColumns(); initTable(); this.tableHandler.redraw(); table.setRedraw(true); } DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat);  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer); protected  DefaultEventTableViewer(EventList<E> source, Table table, TableFormat<? super E> tableFormat,
            TableItemConfigurer<? super E> tableItemConfigurer, boolean disposeSource); TableFormat<? super E> getTableFormat(); void setTableFormat(TableFormat<? super E> tableFormat); TableItemConfigurer<? super E> getTableItemConfigurer(); void setTableItemConfigurer(TableItemConfigurer<? super E> tableItemConfigurer); Table getTable(); void setCheckedOnly(boolean checkedOnly); boolean getCheckedOnly(); List<E> getAllChecked(); EventList<E> getSourceList(); EventList<E> getDeselected(); EventList<E> getTogglingDeselected(); EventList<E> getSelected(); EventList<E> getTogglingSelected(); @Override void listChanged(ListEvent listChanges); void invertSelection(); void dispose();  }