use of delta.common.ui.swing.tables.ListDataProvider in project lotro-companion by dmorcellet.
the class ReputationSynopsisTableController method buildDataProvider.
private DataProvider<Faction> buildDataProvider() {
FactionsRegistry registry = FactionsRegistry.getInstance();
List<Faction> factions = registry.getAll();
DataProvider<Faction> ret = new ListDataProvider<Faction>(factions);
return ret;
}
use of delta.common.ui.swing.tables.ListDataProvider in project lotro-companion by dmorcellet.
the class WarbandsTableController method buildDataProvider.
private DataProvider<WarbandDefinition> buildDataProvider() {
WarbandsRegistry registry = WarbandsRegistry.getWarbandsRegistry();
WarbandDefinition[] warbands = registry.getAllWarbands();
List<WarbandDefinition> warbandsList = Arrays.asList(warbands);
DataProvider<WarbandDefinition> ret = new ListDataProvider<WarbandDefinition>(warbandsList);
return ret;
}
Aggregations