Search in sources :

Example 1 with ListDataProvider

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;
}
Also used : ListDataProvider(delta.common.ui.swing.tables.ListDataProvider) FactionsRegistry(delta.games.lotro.lore.reputation.FactionsRegistry) Faction(delta.games.lotro.lore.reputation.Faction)

Example 2 with ListDataProvider

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;
}
Also used : ListDataProvider(delta.common.ui.swing.tables.ListDataProvider) WarbandDefinition(delta.games.lotro.lore.warbands.WarbandDefinition) WarbandsRegistry(delta.games.lotro.lore.warbands.WarbandsRegistry)

Aggregations

ListDataProvider (delta.common.ui.swing.tables.ListDataProvider)2 Faction (delta.games.lotro.lore.reputation.Faction)1 FactionsRegistry (delta.games.lotro.lore.reputation.FactionsRegistry)1 WarbandDefinition (delta.games.lotro.lore.warbands.WarbandDefinition)1 WarbandsRegistry (delta.games.lotro.lore.warbands.WarbandsRegistry)1