Search in sources :

Example 1 with GuildStatus

use of delta.games.lotro.character.crafting.GuildStatus in project lotro-companion by dmorcellet.

the class CraftingSynopsisTableController method updateRowItems.

private void updateRowItems() {
    _rowItems.clear();
    for (CharacterFile toon : _toons) {
        CraftingStatus craftingStatus = toon.getCraftingStatus();
        List<Profession> professions = craftingStatus.getProfessions();
        GuildStatus guildStatus = craftingStatus.getGuildStatus();
        Profession guild = guildStatus.getProfession();
        for (Profession profession : professions) {
            ProfessionStatus professionStatus = craftingStatus.getProfessionStatus(profession, true);
            GuildStatus displayedStatus = (profession == guild) ? guildStatus : null;
            CraftingSynopsisItem item = new CraftingSynopsisItem(toon, professionStatus, displayedStatus);
            _rowItems.add(item);
        }
    }
}
Also used : ProfessionStatus(delta.games.lotro.character.crafting.ProfessionStatus) Profession(delta.games.lotro.lore.crafting.Profession) GuildStatus(delta.games.lotro.character.crafting.GuildStatus) CraftingStatus(delta.games.lotro.character.crafting.CraftingStatus) CharacterFile(delta.games.lotro.character.CharacterFile)

Example 2 with GuildStatus

use of delta.games.lotro.character.crafting.GuildStatus in project lotro-companion by dmorcellet.

the class VocationEditionPanelController method updateGuildUi.

/**
 * Update the UI for guild edition.
 */
public void updateGuildUi() {
    // Cleanup
    if ((_guildStatus != null) && (_tabbedPane != null)) {
        JPanel guildPanel = _guildStatus.getPanel();
        _tabbedPane.remove(guildPanel);
    }
    GuildStatus guildStatus = _status.getGuildStatus();
    Profession guild = guildStatus.getProfession();
    // Add tab if needed
    if (guild != null) {
        _guildStatus = new FactionStatusPanelController(guildStatus.getFactionStatus());
        JPanel guildPanel = _guildStatus.getPanel();
        _tabbedPane.add("Guild", guildPanel);
        _tabbedPane.setSelectedComponent(guildPanel);
    }
}
Also used : JPanel(javax.swing.JPanel) Profession(delta.games.lotro.lore.crafting.Profession) FactionStatusPanelController(delta.games.lotro.gui.stats.reputation.form.FactionStatusPanelController) GuildStatus(delta.games.lotro.character.crafting.GuildStatus)

Aggregations

GuildStatus (delta.games.lotro.character.crafting.GuildStatus)2 Profession (delta.games.lotro.lore.crafting.Profession)2 CharacterFile (delta.games.lotro.character.CharacterFile)1 CraftingStatus (delta.games.lotro.character.crafting.CraftingStatus)1 ProfessionStatus (delta.games.lotro.character.crafting.ProfessionStatus)1 FactionStatusPanelController (delta.games.lotro.gui.stats.reputation.form.FactionStatusPanelController)1 JPanel (javax.swing.JPanel)1