use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class GlazedListsEventLayerTest method setup.
@Before
public void setup() {
this.listFixture = GlazedLists.eventList(RowDataListFixture.getList());
this.layerUnderTest = new GlazedListsEventLayer<RowDataFixture>(new DataLayerFixture(), this.listFixture);
this.layerUnderTest.setTestMode(true);
this.listenerFixture = new LayerListenerFixture();
this.layerUnderTest.addLayerListener(this.listenerFixture);
}
use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class ComboBoxGlazedListsFilterStrategyTest method init.
@BeforeClass
public static void init() {
// initialize the collection with a big amount of values
EventList<Person> baseCollection = GlazedLists.eventList(PersonService.getFixedPersons());
for (int i = 1; i < 1000; i++) {
baseCollection.addAll(PersonService.getFixedPersons());
}
filterList = new FilterList<>(GlazedLists.eventList(baseCollection));
configRegistry = new ConfigRegistry();
new DefaultNatTableStyleConfiguration().configureRegistry(configRegistry);
new DefaultFilterRowConfiguration().configureRegistry(configRegistry);
new ComboBoxFilterRowConfiguration().configureRegistry(configRegistry);
columnHeaderLayer = new DataLayerFixture(5, 2, 100, 50);
IColumnAccessor<Person> bodyDataColumnAccessor = new ReflectiveColumnPropertyAccessor<>(personPropertyNames);
comboBoxDataProvider = new GlazedListsFilterRowComboBoxDataProvider<>(new DataLayer(new ListDataProvider<>(filterList, bodyDataColumnAccessor)), baseCollection, bodyDataColumnAccessor);
filterStrategy = new ComboBoxGlazedListsFilterStrategy<>(comboBoxDataProvider, filterList, bodyDataColumnAccessor, configRegistry);
dataProvider = new FilterRowDataProvider<>(filterStrategy, columnHeaderLayer, columnHeaderLayer.getDataProvider(), configRegistry);
}
use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class DefaultGlazedListsFilterStrategyTest method init.
@BeforeClass
public static void init() {
// initialize the collection with a big amount of values
filterList = new FilterList<>(GlazedLists.eventList(PersonService.getFixedPersons()));
for (int i = 1; i < 1000; i++) {
filterList.addAll(PersonService.getFixedPersons());
}
configRegistry = new ConfigRegistry();
new DefaultNatTableStyleConfiguration().configureRegistry(configRegistry);
new DefaultFilterRowConfiguration().configureRegistry(configRegistry);
columnHeaderLayer = new DataLayerFixture(5, 2, 100, 50);
dataProvider = new FilterRowDataProvider<>(new DefaultGlazedListsFilterStrategy<>(filterList, new ReflectiveColumnPropertyAccessor<Person>(personPropertyNames), configRegistry), columnHeaderLayer, columnHeaderLayer.getDataProvider(), configRegistry);
}
use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class DefaultGlazedListsStaticFilterStrategyTest method init.
@BeforeClass
public static void init() {
// initialize the collection with a big amount of values
filterList = new FilterList<>(GlazedLists.eventList(PersonService.getFixedPersons()));
for (int i = 1; i < 1000; i++) {
filterList.addAll(PersonService.getFixedPersons());
}
configRegistry = new ConfigRegistry();
new DefaultNatTableStyleConfiguration().configureRegistry(configRegistry);
new DefaultFilterRowConfiguration().configureRegistry(configRegistry);
columnHeaderLayer = new DataLayerFixture(5, 2, 100, 50);
filterStrategy = new DefaultGlazedListsStaticFilterStrategy<>(filterList, new ReflectiveColumnPropertyAccessor<Person>(personPropertyNames), configRegistry);
dataProvider = new FilterRowDataProvider<>(filterStrategy, columnHeaderLayer, columnHeaderLayer.getDataProvider(), configRegistry);
}
use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.fixture.DataLayerFixture in project nebula.widgets.nattable by eclipse.
the class FilterRowDataProviderTest method setup.
@Before
public void setup() {
this.columnHeaderLayer = new DataLayerFixture(10, 2, 100, 50);
this.configRegistry = new ConfigRegistry();
new DefaultNatTableStyleConfiguration().configureRegistry(this.configRegistry);
new DefaultFilterRowConfiguration().configureRegistry(this.configRegistry);
this.filterList = new FilterList<>(GlazedLists.eventList(RowDataListFixture.getList()));
this.dataProvider = new FilterRowDataProvider<>(new DefaultGlazedListsFilterStrategy<>(this.filterList, new ReflectiveColumnPropertyAccessor<RowDataFixture>(RowDataListFixture.getPropertyNames()), this.configRegistry), this.columnHeaderLayer, this.columnHeaderLayer.getDataProvider(), this.configRegistry);
}
Aggregations